diff --git a/machines/kholinar/default.nix b/machines/kholinar/default.nix index 1e201172..0ba8bda9 100644 --- a/machines/kholinar/default.nix +++ b/machines/kholinar/default.nix @@ -2,13 +2,12 @@ { imports = [ - ./hardware.nix ./secret.nix ../../configurations/eid.nix - ../../profiles/bluetooth/default.nix - ../../profiles/common/default.nix - ../../profiles/graphical/default.nix + ../../profiles/bluetooth.nix + ../../profiles/common.nix + ../../profiles/graphical.nix ]; networking = { diff --git a/machines/oldtown/default.nix b/machines/oldtown/default.nix index 483a670d..514df2e5 100644 --- a/machines/oldtown/default.nix +++ b/machines/oldtown/default.nix @@ -2,13 +2,12 @@ { imports = [ - ./hardware.nix ./secret.nix ../../configurations/eid.nix - ../../profiles/bluetooth/default.nix - ../../profiles/common/default.nix - ../../profiles/graphical/default.nix + ../../profiles/bluetooth.nix + ../../profiles/common.nix + ../../profiles/graphical.nix ]; networking.hostName = "oldtown"; diff --git a/profiles/bluetooth/default.nix b/profiles/bluetooth.nix similarity index 100% rename from profiles/bluetooth/default.nix rename to profiles/bluetooth.nix diff --git a/profiles/common.nix b/profiles/common.nix new file mode 100644 index 00000000..7a289ea3 --- /dev/null +++ b/profiles/common.nix @@ -0,0 +1,32 @@ +{ pkgs, ... }: + +{ + imports = [ + + ../modules/zfs.nix + ../overlays/default.nix + ../configurations/direnv.nix + ../configurations/git.nix + ../configurations/locale.nix + ../configurations/neovim.nix + ../configurations/nix-index.nix + ../configurations/nix-store.nix + ../configurations/ssh.nix + ../configurations/tmux.nix + ../configurations/users.nix + ../configurations/zsh.nix + ]; + + home-manager.users.charlotte = { pkgs, ... }: { + home.packages = with pkgs; [ + htop + moreutils + ncdu + pass + ripgrep + unzip + youtube-dl + ]; + }; + +} diff --git a/profiles/common/default.nix b/profiles/common/default.nix deleted file mode 100644 index 31749a2c..00000000 --- a/profiles/common/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ pkgs, ... }: - -{ - imports = [ - ../../modules/zfs.nix - ../../overlays/default.nix - ../../configurations/direnv.nix - ../../configurations/git.nix - ../../configurations/locale.nix - ../../configurations/neovim.nix - ../../configurations/nix-index.nix - ../../configurations/nix-store.nix - ../../configurations/ssh.nix - ../../configurations/tmux.nix - ../../configurations/users.nix - ../../configurations/zsh.nix - ]; - - home-manager.users.charlotte = { pkgs, ... }: { - home.packages = with pkgs; [ - htop - moreutils - ncdu - pass - ripgrep - unzip - youtube-dl - ]; - }; - -} diff --git a/profiles/graphical.nix b/profiles/graphical.nix new file mode 100644 index 00000000..0119a57c --- /dev/null +++ b/profiles/graphical.nix @@ -0,0 +1,55 @@ +{ pkgs, ... }: + +{ + imports = [ + ../configurations/adb.nix + ../configurations/docker.nix + ../configurations/dropbox.nix + ../configurations/firefox.nix + ../configurations/fonts.nix + ../configurations/gnupg.nix + ../configurations/i3.nix + ../configurations/joplin.nix + ../configurations/kernel.nix + ../configurations/kitty.nix + ../configurations/mounts.nix + ../configurations/networkmanager.nix + ../configurations/sound.nix + ../configurations/sway.nix + ../configurations/syncthing.nix + ../configurations/teams.nix + ../configurations/themes.nix + ../configurations/thunderbird.nix + ../configurations/xdg-dirs.nix + ]; + + home-manager.users.charlotte = { pkgs, ... }: { + home.packages = with pkgs; [ + chromium + citrix_workspace + deluge + google-chrome + hledger + libreoffice + mpv + mumble + okular + pavucontrol + ranger + slurp + sshfs + wf-recorder + wl-clipboard + zeroad + ]; + programs.zsh.loginExtra = '' + if [[ -z "$DISPLAY" ]] && [[ $(tty) = "/dev/tty1" ]]; then + exec sway + fi + + if [[ -z "$DISPLAY" ]] && [[ $(tty) = "/dev/tty2" ]]; then + exec startx + fi + ''; + }; +} diff --git a/profiles/graphical/default.nix b/profiles/graphical/default.nix deleted file mode 100644 index fcc75d4f..00000000 --- a/profiles/graphical/default.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ pkgs, ... }: - -{ - imports = [ - ../../configurations/adb.nix - ../../configurations/docker.nix - ../../configurations/dropbox.nix - ../../configurations/firefox.nix - ../../configurations/fonts.nix - ../../configurations/gnupg.nix - ../../configurations/i3.nix - ../../configurations/joplin.nix - ../../configurations/kernel.nix - ../../configurations/kitty.nix - ../../configurations/mounts.nix - ../../configurations/networkmanager.nix - ../../configurations/sound.nix - ../../configurations/sway.nix - ../../configurations/syncthing.nix - ../../configurations/teams.nix - ../../configurations/themes.nix - ../../configurations/thunderbird.nix - ../../configurations/xdg-dirs.nix - ]; - - home-manager.users.charlotte = { pkgs, ... }: { - home.packages = with pkgs; [ - chromium - citrix_workspace - deluge - google-chrome - hledger - libreoffice - mpv - mumble - okular - pavucontrol - ranger - slurp - sshfs - wf-recorder - wl-clipboard - zeroad - ]; - programs.zsh.loginExtra = '' - if [[ -z "$DISPLAY" ]] && [[ $(tty) = "/dev/tty1" ]]; then - exec sway - fi - - if [[ -z "$DISPLAY" ]] && [[ $(tty) = "/dev/tty2" ]]; then - exec startx - fi - ''; - }; -}