mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
refactor flake for stupid reasons
This commit is contained in:
parent
ddad828ab0
commit
93c349d5bd
@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
description = "Flake for nixos configurations";
|
description = "Flake to manage my nixos machines";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
agenix.url = "github:ryantm/agenix";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = github:nix-community/home-manager;
|
url = github:nix-community/home-manager;
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -11,7 +12,6 @@
|
|||||||
url = "git+https://github.com/Jovian-Experiments/Jovian-NixOS?ref=development";
|
url = "git+https://github.com/Jovian-Experiments/Jovian-NixOS?ref=development";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
agenix.url = "github:ryantm/agenix";
|
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
hyprland-contrib = {
|
hyprland-contrib = {
|
||||||
url = "github:hyprwm/contrib";
|
url = "github:hyprwm/contrib";
|
||||||
@ -20,102 +20,102 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { self, nixpkgs, home-manager, jovian-nixos, agenix, hyprland, ... }:
|
outputs = inputs @ { self, nixpkgs, home-manager, jovian-nixos, agenix, hyprland, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
user = "tstarr";
|
||||||
|
lib = nixpkgs.lib;
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
nixosConfigurations = {
|
||||||
|
kestrel = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
specialArgs = { inherit user; inherit inputs; };
|
||||||
|
modules = [
|
||||||
|
./modules
|
||||||
|
./hosts/kestrel/configuration.nix
|
||||||
|
./hosts/kestrel/hardware.nix
|
||||||
|
agenix.nixosModules.default
|
||||||
|
home-manager.nixosModules.home-manager {
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit user; };
|
||||||
|
home-manager.users.${user} = {
|
||||||
|
imports = [
|
||||||
|
./home-modules
|
||||||
|
./hosts/kestrel/home-configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
lib = nixpkgs.lib;
|
|
||||||
user = "tstarr";
|
|
||||||
in {
|
|
||||||
nixosConfigurations = {
|
|
||||||
kestrel = lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
specialArgs = { inherit user; inherit inputs; };
|
|
||||||
modules = [
|
|
||||||
./modules
|
|
||||||
./hosts/kestrel/configuration.nix
|
|
||||||
./hosts/kestrel/hardware.nix
|
|
||||||
agenix.nixosModules.default
|
|
||||||
home-manager.nixosModules.home-manager {
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = { inherit user; };
|
|
||||||
home-manager.users.${user} = {
|
|
||||||
imports = [
|
|
||||||
./home-modules
|
|
||||||
./hosts/kestrel/home-configuration.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
shivan = lib.nixosSystem {
|
shivan = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user; inherit inputs; };
|
specialArgs = { inherit user; inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./modules
|
./modules
|
||||||
./hosts/shivan/configuration.nix
|
./hosts/shivan/configuration.nix
|
||||||
./hosts/shivan/hardware.nix
|
./hosts/shivan/hardware.nix
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = { inherit user; };
|
home-manager.extraSpecialArgs = { inherit user; };
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules
|
./home-modules
|
||||||
./hosts/shivan/home-configuration.nix
|
./hosts/shivan/home-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
torus = lib.nixosSystem {
|
torus = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user; inherit inputs; };
|
specialArgs = { inherit user; inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./modules
|
./modules
|
||||||
./hosts/torus/configuration.nix
|
./hosts/torus/configuration.nix
|
||||||
./hosts/torus/hardware.nix
|
./hosts/torus/hardware.nix
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = { inherit user; };
|
home-manager.extraSpecialArgs = { inherit user; };
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules
|
./home-modules
|
||||||
./hosts/torus/home-configuration.nix
|
./hosts/torus/home-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
bulwark = lib.nixosSystem {
|
bulwark = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit user; inherit inputs; inherit jovian-nixos; inherit home-manager; };
|
specialArgs = { inherit user; inherit inputs; inherit jovian-nixos; inherit home-manager; };
|
||||||
modules = [
|
modules = [
|
||||||
./modules
|
./modules
|
||||||
./hosts/bulwark/configuration.nix
|
./hosts/bulwark/configuration.nix
|
||||||
./hosts/bulwark/hardware.nix
|
./hosts/bulwark/hardware.nix
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = { inherit user; };
|
home-manager.extraSpecialArgs = { inherit user; };
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [
|
imports = [
|
||||||
./home-modules
|
./home-modules
|
||||||
./hosts/bulwark/home-configuration.nix
|
./hosts/bulwark/home-configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user