Files
laptop-config/flake.nix
T

52 lines
1.6 KiB
Nix
Raw Normal View History

2025-06-06 11:12:31 -05:00
{
description = "System Wide Config Controller";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
2025-06-06 11:24:34 -05:00
nixvim = {
2025-06-06 11:12:31 -05:00
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
2025-06-10 08:55:02 -05:00
# implement at some point (So I can push repo public)
2025-06-06 11:12:31 -05:00
sops-nix = {
2025-06-06 11:24:34 -05:00
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
2025-06-06 11:12:31 -05:00
};
2025-06-07 18:27:50 -05:00
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-06-06 11:12:31 -05:00
};
2025-06-07 18:27:50 -05:00
outputs = { self, nixpkgs, nixvim, home-manager, impermanence, sops-nix, firefox-addons }@inputs: {
2025-06-06 11:12:31 -05:00
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
2025-06-06 11:12:31 -05:00
system = "x86_64-linux";
modules = [
./configuration.nix
2025-06-06 11:55:59 -05:00
./hardware-configuration.nix
2025-06-07 15:31:09 -05:00
impermanence.nixosModules.impermanence
sops-nix.nixosModules.sops
2025-06-06 11:12:31 -05:00
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2025-06-07 18:27:50 -05:00
home-manager.extraSpecialArgs = { inherit inputs; };
2025-06-06 11:12:31 -05:00
home-manager.users.roy = { ... }: {
imports = [
./home.nix
nixvim.homeManagerModules.nixvim
2025-06-07 18:27:50 -05:00
impermanence.homeManagerModules.impermanence
2025-06-10 10:03:20 -05:00
sops-nix.homeManagerModules.sops
2025-06-06 11:12:31 -05:00
];
};
}
];
};
};
}