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/
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
{ self, inputs, ... }: {
|
||||
flake.nixosModules.niri = { pkgs, lib, config, ... }: {
|
||||
imports = [ self.nixosModules.cursors ];
|
||||
imports = [
|
||||
self.nixosModules.cursors
|
||||
self.nixosModules.wallpapers
|
||||
];
|
||||
|
||||
options.niri-users = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
|
|
@ -16,9 +19,12 @@
|
|||
|
||||
# Enable cursors for niri users
|
||||
cursor-users = lib.mkDefault config.niri-users;
|
||||
|
||||
# Set wallpaper destination explicitly
|
||||
wallpaper-destination = "Pictures/Wallpapers";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
perSystem = { pkgs, lib, self', ... }: {
|
||||
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
|
||||
inherit pkgs;
|
||||
|
|
@ -33,7 +39,12 @@
|
|||
};
|
||||
|
||||
layout = {
|
||||
gaps = 10;
|
||||
gaps = 20;
|
||||
};
|
||||
|
||||
cursor = {
|
||||
xcursor-theme = "Bibata-Modern-Ice";
|
||||
xcursor-size = 24;
|
||||
};
|
||||
|
||||
binds = {
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
"settings": {
|
||||
"settingsVersion": 57,
|
||||
"bar": {
|
||||
"barType": "floating",
|
||||
"barType": "simple",
|
||||
"position": "top",
|
||||
"monitors": [],
|
||||
"density": "compact",
|
||||
"density": "default",
|
||||
"showOutline": false,
|
||||
"showCapsule": true,
|
||||
"capsuleOpacity": 1,
|
||||
|
|
@ -14,9 +14,9 @@
|
|||
"contentPadding": 2,
|
||||
"fontScale": 1,
|
||||
"enableExclusionZoneInset": true,
|
||||
"backgroundOpacity": 0.93,
|
||||
"useSeparateOpacity": false,
|
||||
"floating": true,
|
||||
"backgroundOpacity": 0,
|
||||
"useSeparateOpacity": true,
|
||||
"floating": false,
|
||||
"marginVertical": 4,
|
||||
"marginHorizontal": 4,
|
||||
"frameThickness": 8,
|
||||
|
|
@ -252,7 +252,7 @@
|
|||
"fontFixedScale": 1,
|
||||
"tooltipsEnabled": true,
|
||||
"scrollbarAlwaysVisible": true,
|
||||
"boxBorderEnabled": false,
|
||||
"boxBorderEnabled": true,
|
||||
"panelBackgroundOpacity": 0.93,
|
||||
"translucentWidgets": false,
|
||||
"panelsAttachedToBar": true,
|
||||
|
|
@ -261,9 +261,9 @@
|
|||
},
|
||||
"location": {
|
||||
"name": "Tokyo",
|
||||
"weatherEnabled": true,
|
||||
"weatherEnabled": false,
|
||||
"weatherShowEffects": true,
|
||||
"useFahrenheit": false,
|
||||
"useFahrenheit": true,
|
||||
"use12hourFormat": false,
|
||||
"showWeekNumberInCalendar": false,
|
||||
"showCalendarEvents": true,
|
||||
|
|
@ -284,7 +284,7 @@
|
|||
"id": "calendar-month-card"
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"id": "weather-card"
|
||||
}
|
||||
]
|
||||
|
|
@ -296,13 +296,13 @@
|
|||
"monitorDirectories": [],
|
||||
"enableMultiMonitorDirectories": false,
|
||||
"showHiddenFiles": false,
|
||||
"viewMode": "single",
|
||||
"viewMode": "browse",
|
||||
"setWallpaperOnAllMonitors": true,
|
||||
"fillMode": "crop",
|
||||
"fillColor": "#000000",
|
||||
"useSolidColor": false,
|
||||
"solidColor": "#1a1a2e",
|
||||
"automationEnabled": false,
|
||||
"automationEnabled": true,
|
||||
"wallpaperChangeMode": "random",
|
||||
"randomIntervalSec": 300,
|
||||
"transitionDuration": 1500,
|
||||
|
|
@ -690,7 +690,10 @@
|
|||
"barVisible": true,
|
||||
"openedPanel": "",
|
||||
"lockScreenActive": false,
|
||||
"wallpapers": {},
|
||||
"wallpapers": {
|
||||
"DP-3": "/home/jingus/Pictures/Wallpapers/ship.jpeg",
|
||||
"HDMI-A-1": "/home/jingus/Pictures/Wallpapers/ship.jpeg"
|
||||
},
|
||||
"desktopWidgetsEditMode": false,
|
||||
"display": {
|
||||
"HDMI-A-1": {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@
|
|||
programs.firefox.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# Enable Gnome and GDM for login management and some decent default apps
|
||||
services.displayManager.gdm.enable = true;
|
||||
services.desktopManager.gnome.enable = true;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue