From 8307d9bd72cef6688dbdf08407379ad369c0cda8 Mon Sep 17 00:00:00 2001 From: k3t Date: Thu, 12 Mar 2026 07:16:02 -0600 Subject: [PATCH] home managing --- flake.nix | 33 +++++++++++++++++++++++++++- hosts/pi-car/bashrc | 52 --------------------------------------------- modules/common.nix | 1 + 3 files changed, 33 insertions(+), 53 deletions(-) delete mode 100755 hosts/pi-car/bashrc diff --git a/flake.nix b/flake.nix index bf4948d..f055741 100755 --- a/flake.nix +++ b/flake.nix @@ -5,9 +5,10 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; impermanence.url = "github:nix-community/impermanence"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + home-manager.url = "github:nix-community/home-manager"; }; - outputs = { self, nixpkgs, impermanence, nixos-hardware, ... }: + outputs = { self, nixpkgs, impermanence, nixos-hardware, home-manager, ... }: let mkHost = system: modules: nixpkgs.lib.nixosSystem { inherit system modules; @@ -29,16 +30,34 @@ ./modules/common.nix ./modules/desktop-common.nix ./hosts/desktop/configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.k3t = ./home/desktop.nix; + } ]; "T14" = mkHost "x86_64-linux" [ ./modules/common.nix ./modules/desktop-common.nix ./hosts/laptop/configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.k3t = ./home/desktop.nix; + } ]; "nixcloud" = mkHost "x86_64-linux" [ ./modules/common.nix ./modules/vps-aarch64-common.nix ./hosts/nixcloud/configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.k3t = ./home/vps.nix; + } ]; Pontiac-G5 = mkHost "aarch64-linux" [ impermanence.nixosModules.impermanence @@ -46,12 +65,24 @@ ./modules/common.nix ./modules/pi-common.nix ./hosts/pi-car/configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.k3t = ./home/car.nix; + } ]; pi-htpc = mkHost "aarch64-linux" [ nixos-hardware.nixosModules.raspberry-pi-4 ./modules/common.nix ./modules/pi-common.nix ./hosts/pi-htpc/configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.k3t = ./home/desktop.nix; + } ]; }; diff --git a/hosts/pi-car/bashrc b/hosts/pi-car/bashrc deleted file mode 100755 index 65ba0e6..0000000 --- a/hosts/pi-car/bashrc +++ /dev/null @@ -1,52 +0,0 @@ -# Pontiac G5 Pi AUX Unit (i dont know wtf to name this thing) -clear -cat <