aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-04 22:26:52 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:45 -0700
commit1f5c44989e3f4432045f6e4178238db42e0f765e (patch)
treec56b31155e1b6a1fb1cc6a652eef5b41aea45513 /hosts
parent3dd1a6d822248204f8b2a2ea147ebca533e21f62 (diff)
migration: remove obsolete laptop config
Diffstat (limited to 'hosts')
-rw-r--r--hosts/phoenix/configuration.nix86
-rw-r--r--hosts/phoenix/hardware.nix54
-rw-r--r--hosts/phoenix/home.nix92
3 files changed, 0 insertions, 232 deletions
diff --git a/hosts/phoenix/configuration.nix b/hosts/phoenix/configuration.nix
deleted file mode 100644
index 80dbb06..0000000
--- a/hosts/phoenix/configuration.nix
+++ /dev/null
@@ -1,86 +0,0 @@
-{ config, lib, pkgs, inputs, ... }:
-
-{
- imports = [
- ./hardware.nix
- ../../core
- ../../roles
- ];
-
- nix.settings.experimental-features = [ "nix-command" "flakes" ];
-
- environment.persistence."/persist/system" = {
- hideMounts = true;
-
- directories = [
- "/etc/nixos"
- "/var/log"
- "/var/lib/nixos"
- "/var/lib/systemd/coredump"
- ];
-
- files = [
- "/etc/machine-id"
- ];
- };
-
- programs.fuse.userAllowOther = true;
-
- networking = {
- hostName = "phoenix";
- hostId = "d62900ff";
-
- networkmanager.enable = true;
- };
-
- time.timeZone = "America/Los_Angeles";
-
- users.users = {
- root.hashedPasswordFile = "/secrets/passwords/root";
-
- "c" = {
- isNormalUser = true;
- hashedPasswordFile = "/secrets/passwords/c";
- extraGroups = [ "wheel" ];
- openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDO8JxqS7B2n3YlNtlVMZGARi+GG/z7wLiiyl52qSZc caroline@larimo.re" ];
- };
- };
-
- home-manager = {
- extraSpecialArgs = { inherit inputs; };
- users = {
- "c" = import ./home.nix;
- };
- };
-
- roles = {
- desktop.enable = true;
- };
-
- programs = {
- gnupg.agent = {
- enable = true;
- enableSSHSupport = true;
- };
-
- dconf.enable = true;
- };
-
- services = {
- pcscd.enable = true;
- openssh = {
- enable = true;
- settings = {
- PermitRootLogin = "no";
- PasswordAuthentication = false;
- };
- };
- };
-
- environment.systemPackages = with pkgs; [
- ffmpeg
- firefox
- ];
-
- system.stateVersion = "24.05";
-}
diff --git a/hosts/phoenix/hardware.nix b/hosts/phoenix/hardware.nix
deleted file mode 100644
index 640bfb1..0000000
--- a/hosts/phoenix/hardware.nix
+++ /dev/null
@@ -1,54 +0,0 @@
-{ config, lib, pkgs, modulesPath, ... }:
-
-{
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
- ];
-
- boot = {
- loader.grub = {
- enable = true;
-
- zfsSupport = true;
- efiSupport = true;
- efiInstallAsRemovable = true;
-
- mirroredBoots = [
- { devices = [ "nodev" ]; path = "/boot"; }
- ];
- };
-
- initrd = {
- availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
- kernelModules = [ ];
-
- postDeviceCommands = lib.mkAfter ''
- zfs rollback -r zpool/root@blank && zfs rollback -r zpool/home@blank
- '';
-
- postMountCommands = lib.mkAfter ''
- chmod u=rw,g=,o= /secrets
- '';
- };
-
- kernelModules = [ "kvm-intel" ];
- extraModulePackages = [ ];
-
- supportedFilesystems = [ "ntfs" ];
- };
-
- fileSystems = {
- "/" = { fsType = "zfs"; neededForBoot = true; device = "zpool/root"; };
- "/nix" = { fsType = "zfs"; neededForBoot = true; device = "zpool/secure/nix"; };
- "/home" = { fsType = "zfs"; neededForBoot = true; device = "zpool/home"; };
- "/persist" = { fsType = "zfs"; neededForBoot = true; device = "zpool/secure/persist"; };
- "/secrets" = { fsType = "zfs"; neededForBoot = true; device = "zpool/secure/secrets"; };
-
- "/boot" = { fsType = "vfat"; device = "/dev/disk/by-uuid/C48C-5EE1"; };
- };
-
- swapDevices = [ ];
-
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
- hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
-}
diff --git a/hosts/phoenix/home.nix b/hosts/phoenix/home.nix
deleted file mode 100644
index 360933e..0000000
--- a/hosts/phoenix/home.nix
+++ /dev/null
@@ -1,92 +0,0 @@
-{ config, lib, pkgs, inputs, ...}:
-
-{
- imports = [
- inputs.impermanence.nixosModules.home-manager.impermanence
-
- ../../roles/home
- ];
-
- theme = import ../../theme.nix;
-
- home.persistence."/persist/home" = {
- allowOther = true;
-
- directories = [
- "Downloads"
- "Documents"
- "Pictures"
- "Videos"
- "Music"
- "Games"
- "Persist"
-
- "code"
-
- ".gnupg"
- ".ssh"
-
- ".local/bin"
- ".local/share/applications"
-
- ".mozilla"
-
- ".config/discord"
- ".config/Vencord"
- ".config/vesktop"
-
- ".config/Obsidian"
-
- ".config/cmus"
-
- ".config/fcitx"
- ".config/fcitx5"
-
- {
- directory = ".local/share/Steam";
- method = "symlink";
- }
-
- ".config/qBittorrent"
- ".local/share/qBittorrent"
- ".cache/qBittorrent"
-
- ".local/share/lutris"
- ".local/share/PrismLauncher"
- ];
- };
-
- home.roles = {
- dev = {
- enable = true;
- key = "46008DE7867DA084";
- };
-
- desktop.enable = true;
- };
-
- programs = {
- feh.enable = true;
- btop.enable = true;
- tmux.enable = true;
- };
-
- nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
- "discord"
- "obsidian"
- ];
-
- home.packages = with pkgs; [
- pfetch
-
- qbittorrent
- jellyfin-media-player
-
- gimp
-
- obsidian
- prismlauncher
- ];
-
- home.stateVersion = "23.11";
-}