diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-09 08:25:51 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-09 08:25:51 -0800 |
commit | 52ef45715fa2501db36980089df5d89a2d473529 (patch) | |
tree | b13f10b8eebb6ba1bafe0ce8ead4cf9360df6123 /users/fcuny | |
parent | Revert "desktop: new option to control desktop setup" (diff) | |
download | world-52ef45715fa2501db36980089df5d89a2d473529.tar.gz |
home-manager: simplify the configuration
I'm still struggling with documentation, and I'd rather have something simple that works rather than smart and does not work. The configuration for the host imports the modules that are relevant to that host (in the case of carmel, desktop and systems). For the home-manager, I create a profile "desktop" that contains stuff related to a desktop (i3, etc), and it includes the module "common" that contains stuff that I want on any machines (so that in the future, for a machine that is a server, the home manager will only import "common").
Diffstat (limited to 'users/fcuny')
-rw-r--r-- | users/fcuny/common.nix (renamed from users/fcuny/home-manager.nix) | 16 | ||||
-rw-r--r-- | users/fcuny/desktop.nix | 18 | ||||
-rw-r--r-- | users/fcuny/i3.nix | 1 |
3 files changed, 19 insertions, 16 deletions
diff --git a/users/fcuny/home-manager.nix b/users/fcuny/common.nix index 95c1820..04bc1c1 100644 --- a/users/fcuny/home-manager.nix +++ b/users/fcuny/common.nix @@ -1,12 +1,6 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs ... } { - xdg.enable = true; - - imports = [ - ./i3.nix - ]; - home.packages = [ pkgs.jq pkgs.ripgrep @@ -23,12 +17,4 @@ enable = true; goPath = "workspace/go"; }; - - programs.alacritty = { - enable = true; - - settings = { - env.TERM = "xterm-256color"; - }; - }; } diff --git a/users/fcuny/desktop.nix b/users/fcuny/desktop.nix new file mode 100644 index 0000000..6ded2a0 --- /dev/null +++ b/users/fcuny/desktop.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +{ + xdg.enable = true; + + imports = [ + ./common.nix + ./i3.nix + ]; + + programs.alacritty = { + enable = true; + + settings = { + env.TERM = "xterm-256color"; + }; + }; +} diff --git a/users/fcuny/i3.nix b/users/fcuny/i3.nix index b09a439..aa97cb8 100644 --- a/users/fcuny/i3.nix +++ b/users/fcuny/i3.nix @@ -14,7 +14,6 @@ extraConfig = { modi = "drun"; show-icons = true; - icon-theme = "Numix-Square"; combi-modi = "window,drun,ssh"; }; }; |