mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 14:54:26 -05:00
Made it work
This commit is contained in:
50
flake.nix
50
flake.nix
@@ -1,23 +1,21 @@
|
||||
# This is the main flake containing all the nix related stuff
|
||||
|
||||
{
|
||||
description = "Main nixos system configuration management von Jonas Hahn ";
|
||||
description = "Main nixos system configuration management by Jonas Hahn";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-25.05";
|
||||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
xremap-flake.url = "github:xremap/nix-flake?rev=8001f37b1ffe86e76b62f36afadee2f4acf90e70";
|
||||
xremap-flake.url = "github:xremap/nix-flake?rev=8001f37b1ffe86e76b62f36afadee2f4acf90e70"; # One commit behind head
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, sops-nix, nixpkgs-unstable, home-manager, ... }@inputs:
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, sops-nix, home-manager, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
@@ -26,41 +24,29 @@
|
||||
};
|
||||
|
||||
helperModules = [
|
||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||
({ config, pkgs, ... }: {
|
||||
nixpkgs.overlays = [ overlay-unstable ];
|
||||
})
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
home-manager.users.jonas = import ./nixos/users/jonas/home.nix;
|
||||
home-manager.users.jonas = import ./user/home.nix;
|
||||
}
|
||||
];
|
||||
|
||||
mkHost = name: path:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [ path ] ++ helperModules;
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
"thinix" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
# Use overlay magic with pkgs.unstable.<name>
|
||||
./nixos/hosts/thinkpadt470s/configuration.nix
|
||||
|
||||
] ++ helperModules;
|
||||
};
|
||||
"nixyos" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./nixos/hosts/asus-vivo/configuration.nix
|
||||
] ++ helperModules;
|
||||
};
|
||||
"minoxy" = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./nixos/hosts/minoxy/configuration.nix
|
||||
] ++ helperModules;
|
||||
};
|
||||
thinix = mkHost "thinix" ./hosts/thinix-thinkpad/configuration.nix;
|
||||
nixyos = mkHost "nixyos" ./hosts/nixyos-asus/configuration.nix;
|
||||
minoxy = mkHost "minoxy" ./hosts/minoxy-workstation/configuration.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user