44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
description = "shihaam's NixOS + home-manager configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-26.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, sops-nix, ... }: {
|
|
nixosConfigurations.la2410 = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
./hosts/la2410/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
backupFileExtension = "hm-bak";
|
|
users.shihaam = import ./home/shihaam.nix;
|
|
};
|
|
}
|
|
|
|
{
|
|
nix.registry.nixpkgs.flake = nixpkgs;
|
|
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|