diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/common.nix | 29 | ||||
| -rw-r--r-- | modules/home/christian.nix | 14 | ||||
| -rw-r--r-- | modules/home/nvim/default.nix | 3 |
3 files changed, 33 insertions, 13 deletions
diff --git a/modules/common.nix b/modules/common.nix index 6ca9591..091b8c9 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -1,4 +1,10 @@ -{ config, lib, pkgs, inputs, ... }: +{ + config, + lib, + pkgs, + inputs, + ... +}: { imports = [ @@ -9,7 +15,10 @@ nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; # Experimental features - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; # Configure network connections interactively with nmcli or nmtui. networking.networkmanager.enable = true; @@ -30,10 +39,17 @@ # User users.users.christian = { - isNormalUser = true; - extraGroups = [ "wheel" "video" "render" "docker" ]; - }; - home-manager.users.christian = import ./home/christian.nix; + isNormalUser = true; + extraGroups = [ + "wheel" + "video" + "render" + "docker" + ]; + }; + home-manager.users.christian = { + imports = [ ./home/christian.nix ]; + }; home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; @@ -70,4 +86,3 @@ programs.nix-index-database.comma.enable = true; programs.command-not-found.enable = false; } - diff --git a/modules/home/christian.nix b/modules/home/christian.nix index 8c32edc..a5af420 100644 --- a/modules/home/christian.nix +++ b/modules/home/christian.nix @@ -1,12 +1,17 @@ -{ config, pkgs, inputs, ... }: +{ + config, + pkgs, + inputs, + ... +}: { imports = [ ./nvim ]; home.stateVersion = "25.11"; - home.packages = with pkgs; [ + home.packages = with pkgs; [ (dmenu.override { - conf = ./dmenu/config.h; + conf = ./dmenu/config.h; }) nixfmt ]; @@ -54,7 +59,7 @@ "browser.theme.toolbar-theme" = 0; }; extensions.packages = with inputs.nur.legacyPackages.x86_64-linux.repos.rycee.firefox-addons; [ - ublock-origin + ublock-origin ]; }; }; @@ -64,6 +69,5 @@ extraConfig = builtins.readFile ./xmobar/xmobarrc; }; - programs.home-manager.enable = true; } diff --git a/modules/home/nvim/default.nix b/modules/home/nvim/default.nix index 6cae9d6..8c28257 100644 --- a/modules/home/nvim/default.nix +++ b/modules/home/nvim/default.nix @@ -1,4 +1,5 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ programs.neovim = { enable = true; defaultEditor = true; |
