This commit is contained in:
tulg 2025-10-19 19:40:13 +03:00
parent 510db0f1d4
commit 6810e6bb0f
6 changed files with 452 additions and 79 deletions

View file

@ -1,52 +1,56 @@
{
description = "NixOS configuration";
description = "Tulga's multi-device NixOS configuration (no global modules)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-colors.url = "github:misterio77/nix-colors";
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, nix-colors, ... } @ inputs:
outputs = { self, nixpkgs, home-manager, nix-colors, zen-browser, disko, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
#
nixosConfigurations.virgil = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
./hosts/virgil/configuration.nix
home-manager.nixosModules.home-manager
];
specialArgs = { inherit home-manager; };
};
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
# Pass additional inputs to home-manager modules
extraSpecialArgs = { inherit inputs nix-colors; };
backupFileExtension = "backup";
users.tulg = {
imports = [ ./home.nix ];
};
};
}
#
nixosConfigurations.archangel = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/archangel/configuration.nix
home-manager.nixosModules.home-manager
];
};
# placeholder
#nixosConfigurations.server = nixpkgs.lib.nixosSystem {
# inherit system;
# modules = [
# ./hosts/server/configuration.nix
# ];
# };
};
}