mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 17:50:52 +01:00
example: Define basic hyprland setup
I wrote a simple flake.nix that shows how to use this nix-config in your own flake. This example in particular has been updated to show a working demonstration with hyprland, although it's possible to use only parts of this nix-config in e.g. headless environments as well.
This commit is contained in:
parent
074b019656
commit
a4637faad6
@ -1,28 +1,24 @@
|
|||||||
{ nix-config, pkgs, ... }:
|
{ nix-config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (builtins) attrValues;
|
inherit (builtins) attrValues;
|
||||||
|
inherit (lib) singleton;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = attrValues {
|
imports = attrValues {
|
||||||
inherit (nix-config.nixosModules) system shell;
|
inherit (nix-config.nixosModules) system shell desktop;
|
||||||
|
|
||||||
customConfig = {
|
customConfig = {
|
||||||
modules.system.username = "demo";
|
modules.system.username = "asuna";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.sharedModules = attrValues {
|
home-manager.sharedModules = attrValues nix-config.homeManagerModules ++ singleton {
|
||||||
inherit (nix-config.homeManagerModules) yazi;
|
programs.btop.enable = true;
|
||||||
|
|
||||||
youCanNameThisAnything = {
|
|
||||||
programs.btop.enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = attrValues {
|
environment.systemPackages = attrValues {
|
||||||
inherit (nix-config.packages.x86_64-linux) webp-thumbnailer;
|
inherit (nix-config.packages.x86_64-linux) fluent-icons hycov osu-backgrounds;
|
||||||
|
|
||||||
inherit (pkgs) ruby php;
|
inherit (pkgs) ruby php;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user