summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
authorSkullheadx <andrew.montgomery@warpengine.ai>2026-06-29 14:38:08 -0400
committerSkullheadx <andrew.montgomery@warpengine.ai>2026-06-29 14:38:08 -0400
commita00086f63df186181c254a164c77b974cc7a5c7c (patch)
treef7d6ac98ab49166250a1635059ae032b3719a5be /flake.nix
parentremove work legacy, move more pkgs to common for darwin (diff)
downloadnixos-a00086f63df186181c254a164c77b974cc7a5c7c.tar.gz
nixos-a00086f63df186181c254a164c77b974cc7a5c7c.tar.bz2
nixos-a00086f63df186181c254a164c77b974cc7a5c7c.zip
DRY for username
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix86
1 files changed, 31 insertions, 55 deletions
diff --git a/flake.nix b/flake.nix
index f46e695..401f2ee 100644
--- a/flake.nix
+++ b/flake.nix
@@ -36,10 +36,6 @@
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
- home-manager = {
- url = "github:nix-community/home-manager";
- inputs.nixpkgs.follows = "nixpkgs";
- };
hjem = {
url = "github:feel-co/hjem";
inputs.nixpkgs.follows = "nixpkgs";
@@ -72,81 +68,61 @@
modules = [./nvf/nvf.nix];
};
in {
- nixosConfigurations.nepsis = nixpkgs.lib.nixosSystem {
- specialArgs = {inherit inputs nvim;};
- modules = [
- hjem.nixosModules.default
- ./linux-common.nix
- ./hosts/nepsis/configuration.nix
- ./overlays.nix
- ];
- };
- nixosConfigurations.icon = nixpkgs.lib.nixosSystem {
- specialArgs = {inherit inputs nvim;};
- modules = [
- hjem.nixosModules.default
- ./linux-common.nix
- ./hosts/icon/configuration.nix
- ./overlays.nix
- ];
- };
-
packages.${system}.nvim = nvim.neovim;
packages.${system-darwin}.nvim = nvim-darwin.neovim;
+ nixosConfigurations = {
+ nepsis = nixpkgs.lib.nixosSystem {
+ specialArgs = {
+ inherit inputs nvim;
+ username = "andrew";
+ };
+ modules = [
+ hjem.nixosModules.default
+ ./linux-common.nix
+ ./hosts/nepsis/configuration.nix
+ ./overlays.nix
+ ];
+ };
+ icon = nixpkgs.lib.nixosSystem {
+ specialArgs = {
+ inherit inputs nvim;
+ username = "andrew";
+ };
+ modules = [
+ hjem.nixosModules.default
+ ./linux-common.nix
+ ./hosts/icon/configuration.nix
+ ./overlays.nix
+ ];
+ };
+ };
+
darwinConfigurations = {
kenosis = nix-darwin.lib.darwinSystem {
specialArgs = {
inherit inputs;
nvim = nvim-darwin;
+ username = "andrew";
};
modules = [
./darwin-common.nix
./hosts/kenosis/configuration.nix
./overlays.nix
- home-manager.darwinModules.home-manager
- {
- users.users.andrew = {
- home = /Users/andrew;
- };
- home-manager.useGlobalPkgs = true;
- home-manager.useUserPackages = true;
- home-manager.extraSpecialArgs = {
- inherit inputs;
- };
- home-manager.users.andrew = {
- imports = [./home.nix];
- home.username = "andrew";
- home.homeDirectory = /Users/andrew;
- };
- }
+ hjem.darwinModules.default
];
};
bear = nix-darwin.lib.darwinSystem {
specialArgs = {
inherit inputs;
nvim = nvim-darwin;
+ username = "andrewmontgomery";
};
modules = [
./darwin-common.nix
./hosts/bear/configuration.nix
./overlays.nix
- home-manager.darwinModules.home-manager
- {
- users.users.andrewmontgomery = {
- home = /Users/andrewmontgomery;
- };
- home-manager.useGlobalPkgs = true;
- home-manager.useUserPackages = true;
- home-manager.extraSpecialArgs = {
- inherit inputs;
- };
- home-manager.users.andrewmontgomery = {
- imports = [./home.nix];
- home.username = "andrewmontgomery";
- home.homeDirectory = /Users/andrewmontgomery;
- };
- }
+ hjem.darwinModules.default
];
};
};