nixos/flake.nix

62 lines
1.3 KiB
Nix
Raw Normal View History

2024-03-01 15:22:49 +01:00
{
description = "Nixos config flake";
inputs = {
2024-11-25 22:27:37 +01:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
2024-11-25 22:27:37 +01:00
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-25 22:27:37 +01:00
musnix = {
url = "github:musnix/musnix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-01 15:22:49 +01:00
};
outputs = {
nixpkgs,
home-manager,
sops-nix,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
2024-12-28 20:06:27 +01:00
allowUnfreePredicate = pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"discord"
"samsung-UnifiedLinuxDriver"
"steam"
"steam-unwrapped"
];
};
};
in {
nixosConfigurations."MaxNixosLaptop" = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
inherit pkgs;
};
system = "x86_64-linux";
modules = [
./hosts/MaxNixosLaptop/configuration.nix
sops-nix.nixosModules.sops
home-manager.nixosModules.default
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
inputs.musnix.nixosModules.musnix
];
2024-03-01 15:22:49 +01:00
};
};
2024-03-01 15:22:49 +01:00
}