From 1eb21c10c217c60e226d168875def24967570a19 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sat, 8 Feb 2025 20:11:54 -0800 Subject: migration: housekeeping --- hosts/c-pc/configuration.nix | 31 -------------------------- hosts/c-pc/home.nix | 29 ------------------------ roles/default.nix | 9 -------- snowfall/modules/home/apps/default.nix | 40 ++++++++++++++++------------------ 4 files changed, 19 insertions(+), 90 deletions(-) delete mode 100644 hosts/c-pc/configuration.nix delete mode 100644 hosts/c-pc/home.nix delete mode 100644 roles/default.nix diff --git a/hosts/c-pc/configuration.nix b/hosts/c-pc/configuration.nix deleted file mode 100644 index b9590b5..0000000 --- a/hosts/c-pc/configuration.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ config, lib, pkgs, inputs, ... }: - -{ - imports = [ - ./hardware.nix - ./network.nix - ../../core - ../../roles - ]; - - users.users = { - root.hashedPasswordFile = "/secrets/passwords/root"; - - "c" = { - isNormalUser = true; - hashedPasswordFile = "/secrets/passwords/c"; - extraGroups = [ "wheel" ]; - }; - }; - - environment.systemPackages = with pkgs; [ - jellyfin - - go - jdk21 - - libGL - ]; - - system.stateVersion = "23.11"; -} diff --git a/hosts/c-pc/home.nix b/hosts/c-pc/home.nix deleted file mode 100644 index 7fc00d6..0000000 --- a/hosts/c-pc/home.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ config, lib, pkgs, inputs, ...}: - -{ - imports = [ - inputs.impermanence.nixosModules.home-manager.impermanence - - ../../roles/home - ]; - - # theme.nix is an untracked symlink to a theme under ./themes/ - # This lets me switch out my theme without making changes in git - theme = import ../../theme.nix; - - home.persistence."/persist/home" = { - allowOther = true; - - directories = [ - ".config/jellyfin" - ".local/share/jellyfin" - ".cache/jellyfin" - ]; - }; - - home.packages = with pkgs; [ - mkvtoolnix - ]; - - home.stateVersion = "23.11"; -} diff --git a/roles/default.nix b/roles/default.nix deleted file mode 100644 index 420eaeb..0000000 --- a/roles/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ ... }: - -{ - imports = [ - ./desktop - ./minecraft - ./web - ]; -} diff --git a/snowfall/modules/home/apps/default.nix b/snowfall/modules/home/apps/default.nix index b284132..2c26354 100644 --- a/snowfall/modules/home/apps/default.nix +++ b/snowfall/modules/home/apps/default.nix @@ -3,6 +3,24 @@ with lib; with lib.${namespace}; { imports = with pkgs; [ (mkSimpleApp "gimp" {}) + (mkSimpleApp "jellyfin" { packages = [ jellyfin-media-player ]; }) + (mkSimpleApp "lutris" { persist = [ ".local/share/lutris" ]; }) + (mkSimpleApp "irssi" { persist = [ ".irssi" ]; }) + + (mkSimpleApp "intellij" { + packages = [ jetbrains.idea-community ]; + persist = [ + ".config/JetBrains" + ".local/share/JetBrains" + ".cache/JetBrains" + ]; + }) + + (mkSimpleApp "anki" { + packages = [ anki-bin ]; + persist = [ ".local/share/Anki2" ]; + }) + (mkSimpleApp "qbittorrent" { persist = [ ".config/qBittorrent" @@ -17,27 +35,7 @@ with lib; with lib.${namespace}; { ".local/share/nicotine" ]; }) - (mkSimpleApp "anki" { - packages = [ anki-bin ]; - persist = [ ".local/share/Anki2" ]; - }) - (mkSimpleApp "jellyfin" { - packages = [ jellyfin-media-player ]; - }) - (mkSimpleApp "lutris" { - persist = [ ".local/share/lutris" ]; - }) - (mkSimpleApp "intellij" { - packages = [ jetbrains.idea-community ]; - persist = [ - ".config/JetBrains" - ".local/share/JetBrains" - ".cache/JetBrains" - ]; - }) - (mkSimpleApp "irssi" { - persist = [ ".irssi" ]; - }) + (mkSimpleApp "pfetch" {}) (mkSimpleApp "cmatrix" {}) (mkSimpleApp "asciiquarium" {}) -- cgit v1.2.3