feat: init wallpapers, fix niri cursor
This commit is contained in:
parent
a0ef70743b
commit
556a7bfa38
43 changed files with 439 additions and 20 deletions
|
|
@ -1,6 +1,8 @@
|
|||
{ self, inputs, ... }: {
|
||||
flake.nixosModules.base = { pkgs, lib, ... }: {
|
||||
imports = [ inputs.hjem.nixosModules.default ];
|
||||
|
||||
nixpkgs.overlays = [ inputs.millennium.overlays.default ];
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
|
|
@ -19,9 +21,6 @@
|
|||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.desktopManager.gnome.enable = true;
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
vim
|
||||
git
|
||||
zed-editor
|
||||
opencode
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
{ self, inputs, ... }: {
|
||||
flake.nixosModules.gaming = { pkgs, lib, ... }: {
|
||||
programs.steam.enable = true;
|
||||
programs.steam.gamescopeSession.enable = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
package = pkgs.millennium-steam;
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
programs.gamemode.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
mangohud
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{ self, inputs, ... }: {
|
||||
flake.nixosModules.user-jingus = { ... }: {
|
||||
niri-users = [ "jingus" ];
|
||||
wallpaper-users = [ "jingus" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
30
modules/features/layers/wallpapers.nix
Normal file
30
modules/features/layers/wallpapers.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ self, inputs, ... }: {
|
||||
flake.nixosModules.wallpapers = { pkgs, lib, config, ... }: {
|
||||
|
||||
options.wallpaper-users = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [];
|
||||
description = "List of users to include wallpapers for";
|
||||
};
|
||||
|
||||
options.wallpaper-destination = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "Pictures/Wallpapers";
|
||||
description = "Destination path for wallpapers";
|
||||
};
|
||||
|
||||
config = {
|
||||
hjem = lib.mkIf (config.wallpaper-users != []) {
|
||||
users = lib.genAttrs config.wallpaper-users (username: {
|
||||
enable = true;
|
||||
files = {
|
||||
"${config.wallpaper-destination}".source = pkgs.runCommand "wallpapers" {} ''
|
||||
mkdir -p $out
|
||||
cp -r ${../../../assets/wallpapers}/* $out/
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue