update config
This commit is contained in:
parent
f610209aff
commit
ae92148089
34 changed files with 387 additions and 240 deletions
82
flake.nix
82
flake.nix
|
@ -1,72 +1,36 @@
|
|||
{
|
||||
description = "Nixos config flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
|
||||
firefox-addons.url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||
firefox-addons.inputs.nixpkgs.follows = "nixpkgs";
|
||||
firefox-addons.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
};
|
||||
outputs = { nixpkgs-stable, nixpkgs-unstable, ... }@inputs:
|
||||
let
|
||||
mkSystem = { host_name, system ? "x86_64-linux", pkgs ? nixpkgs-unstable }:
|
||||
pkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [ ./hosts/${host_name} ];
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, firefox-addons, home-manager, sops-nix, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
desk = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
firefox-addons = firefox-addons.packages.x86_64-linux;
|
||||
};
|
||||
modules = [
|
||||
./hosts/desk
|
||||
];
|
||||
};
|
||||
vm_ollama = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/vm_ollama
|
||||
];
|
||||
};
|
||||
vps_fz = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/vps_fz
|
||||
];
|
||||
};
|
||||
# wip
|
||||
lap = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
firefox-addons = firefox-addons.packages.x86_64-linux;
|
||||
};
|
||||
modules = [
|
||||
./hosts/laptop
|
||||
];
|
||||
};
|
||||
# wip
|
||||
htpc = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
firefox-addons = firefox-addons.packages.x86_64-linux;
|
||||
};
|
||||
modules = [
|
||||
./hosts/htpc
|
||||
];
|
||||
};
|
||||
hosts = {
|
||||
desk = {};
|
||||
lap = {};
|
||||
vm_ollama = {};
|
||||
vps = { pkgs = nixpkgs-stable; };
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = builtins.mapAttrs (host_name: config:
|
||||
mkSystem (config // { inherit host_name; })
|
||||
) hosts;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue