feat: init wallpapers, fix niri cursor

This commit is contained in:
jackjohn7 2026-03-27 00:21:23 -05:00
parent a0ef70743b
commit 556a7bfa38
43 changed files with 439 additions and 20 deletions

View file

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

View file

@ -4,6 +4,7 @@
vim
git
zed-editor
opencode
];
};
}

View file

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

View file

@ -1,5 +1,6 @@
{ self, inputs, ... }: {
flake.nixosModules.user-jingus = { ... }: {
niri-users = [ "jingus" ];
wallpaper-users = [ "jingus" ];
};
}

View 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/
'';
};
});
};
};
};
}