move home to directory

This commit is contained in:
Noa Aarts 2024-11-22 21:07:06 +01:00
parent 3d79cf4cb3
commit ac3fb7562d
Signed by: noa
GPG key ID: 1850932741EFF672
6 changed files with 16 additions and 36 deletions

View file

@ -29,13 +29,13 @@ in
{ {
imports = imports =
[ [
../modules ../../modules
./nvim/nvim.nix ../nvim/nvim.nix
extraConfig extraConfig
] ]
++ lib.optionals enableGraphical [ ++ lib.optionals enableGraphical [
./discord/discord.nix ../discord/discord.nix
./spotify.nix ../spotify.nix
]; ];
home = { home = {
@ -107,7 +107,7 @@ in
}; };
xdg.configFile = lib.mkIf enableGraphical { xdg.configFile = lib.mkIf enableGraphical {
"niri/config.kdl".source = import ../packages/niri-config/default.nix { "niri/config.kdl".source = import ../../packages/niri-config/default.nix {
inherit pkgs inputs displays; inherit pkgs inputs displays;
self-pkgs = inputs.self.packages.${pkgs.system}; self-pkgs = inputs.self.packages.${pkgs.system};
}; };
@ -116,28 +116,6 @@ in
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
modules = { modules = {
waybar = {
modules = {
left = [
"niri/workspaces"
"tray"
"niri/window"
];
center = [
"clock"
"custom/spotify"
];
right = [
"custom/vpn"
"wireplumber"
"network"
"cpu"
"memory"
"custom/poweroff"
];
};
enable = lib.mkDefault enableGraphical;
};
games.enable = enableGraphical && enableGames; games.enable = enableGraphical && enableGames;
apps = { apps = {
zsh.enable = true; zsh.enable = true;
@ -159,7 +137,6 @@ in
startServices = "sd-switch"; startServices = "sd-switch";
services = lib.mkMerge [ services = lib.mkMerge [
(builtins.listToAttrs ( (builtins.listToAttrs (
builtins.map ( builtins.map (
{ {
@ -172,19 +149,19 @@ in
display_config = display_config =
let let
display-shader = pkgs.substituteAll { display-shader = pkgs.substituteAll {
src = ../modules/automapaper/display-with_vars.glsl; src = ../../modules/automapaper/display-with_vars.glsl;
background = inputs.nix-colors.lib.conversions.hexToGLSLVec "0a000a"; background = inputs.nix-colors.lib.conversions.hexToGLSLVec "0a000a";
foreground = inputs.nix-colors.lib.conversions.hexToGLSLVec "192291"; foreground = inputs.nix-colors.lib.conversions.hexToGLSLVec "192291";
}; };
state-shader = ../modules/automapaper/state-game_of_life.glsl; state-shader = ../../modules/automapaper/state-game_of_life.glsl;
init-shader = ../modules/automapaper/init.glsl; init-shader = ../../modules/automapaper/init.glsl;
# General configurations # General configurations
cycles = 2000; cycles = 2000;
tps = 30; tps = 30;
horizontal-dot-size = 10; horizontal-dot-size = 10;
vertical-dot-size = 10; vertical-dot-size = 10;
in in
(import ../modules/automapaper/config.nix { (import ../../modules/automapaper/config.nix {
inherit (pkgs) writeTextFile; inherit (pkgs) writeTextFile;
inherit inherit
init-shader init-shader

View file

@ -119,7 +119,7 @@
inherit nix-colors; inherit nix-colors;
}; };
users = { users = {
"noa" = (import ../../common/home.nix) { "noa" = (import ../../common/home) {
enableGraphical = true; enableGraphical = true;
enableFlut = true; enableFlut = true;
enableGames = true; enableGames = true;

View file

@ -76,7 +76,7 @@
inherit nix-colors; inherit nix-colors;
}; };
users = { users = {
"noa" = (import ../../common/home.nix) { "noa" = (import ../../common/home) {
enableGraphical = true; enableGraphical = true;
enableFlut = false; enableFlut = false;
enableGames = true; enableGames = true;

View file

@ -88,7 +88,7 @@
inherit nix-colors; inherit nix-colors;
}; };
users = { users = {
"noa" = (import ../../common/home.nix) { "noa" = (import ../../common/home) {
enableFlut = true; enableFlut = true;
}; };
"root" = import ./root.nix; "root" = import ./root.nix;

View file

@ -68,6 +68,10 @@ in
programs.waybar = { programs.waybar = {
enable = true; enable = true;
package = cfg.package; package = cfg.package;
systemd = {
enable = true;
target = "niri.service";
};
settings = { settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";

View file

@ -16,7 +16,6 @@ let
"spotify\"" "spotify\""
"keepassxc\"" "keepassxc\""
"thunderbird\"" "thunderbird\""
"${pkgs.waybar}/bin/waybar\""
]; ];
displays-string = pkgs.lib.strings.concatMapStringsSep "\n" ( displays-string = pkgs.lib.strings.concatMapStringsSep "\n" (