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:
Donovan Glover 2024-04-06 13:55:50 -04:00
parent 074b019656
commit a4637faad6
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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;
}; };