mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +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
|
||||
inherit (builtins) attrValues;
|
||||
inherit (lib) singleton;
|
||||
in
|
||||
{
|
||||
imports = attrValues {
|
||||
inherit (nix-config.nixosModules) system shell;
|
||||
inherit (nix-config.nixosModules) system shell desktop;
|
||||
|
||||
customConfig = {
|
||||
modules.system.username = "demo";
|
||||
modules.system.username = "asuna";
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.sharedModules = attrValues {
|
||||
inherit (nix-config.homeManagerModules) yazi;
|
||||
|
||||
youCanNameThisAnything = {
|
||||
programs.btop.enable = true;
|
||||
};
|
||||
home-manager.sharedModules = attrValues nix-config.homeManagerModules ++ singleton {
|
||||
programs.btop.enable = true;
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user