configuration.nix/flake.nix

97 lines
2.5 KiB
Nix
Raw Normal View History

2023-03-15 22:11:59 +05:30
{
2023-03-25 22:10:42 +05:30
description = "NixOS Configuration";
2023-03-15 22:11:59 +05:30
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
2023-04-01 23:20:13 +05:30
home-manager = {
2023-04-02 00:30:38 +05:30
url = "github:nix-community/home-manager";
2023-03-15 22:11:59 +05:30
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence = {
2023-04-02 00:30:38 +05:30
url = "github:nix-community/impermanence";
2023-03-15 22:11:59 +05:30
};
2023-04-01 23:20:13 +05:30
lanzaboote = {
url = "github:nix-community/lanzaboote";
2023-04-01 23:20:13 +05:30
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
2023-04-02 00:30:38 +05:30
url = "github:pta2002/nixvim";
2023-03-15 22:11:59 +05:30
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-05-06 00:20:03 +05:30
outputs = { self, nixpkgs, home-manager, impermanence, lanzaboote, nixvim }@inputs: {
2023-04-10 23:07:41 +05:30
formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".nixpkgs-fmt;
nixosConfigurations = let user = (import ./secrets.nix).users; in {
2023-04-10 23:07:41 +05:30
Skipper = nixpkgs.lib.nixosSystem {
2023-04-10 23:07:41 +05:30
system = "x86_64-linux";
specialArgs = inputs;
modules = [
{
2023-04-27 22:44:21 +05:30
nixpkgs.overlays = [ (import ./packages) ];
2023-04-10 23:07:41 +05:30
nixpkgs.hostPlatform = nixpkgs.lib.mkDefault "x86_64-linux";
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
lanzaboote.nixosModules.lanzaboote
./common
2023-04-16 23:22:55 +05:30
./hosts/skipper
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users.${user.primary.userName} = { pkgs, ... }: {
imports = [
impermanence.nixosModules.home-manager.impermanence
nixvim.homeManagerModules.nixvim
./home/common
./home/desktop
];
};
};
}
2023-04-10 23:07:41 +05:30
];
};
Rico2 = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = inputs;
modules = [
{
nixpkgs.hostPlatform = nixpkgs.lib.mkDefault "aarch64-linux";
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
}
home-manager.nixosModules.home-manager
./common
2023-04-16 23:22:55 +05:30
./hosts/rico
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users.${user.primary.userName} = { pkgs, ... }: {
imports = [
./home/common
./home/server
];
};
};
}
2023-04-10 23:07:41 +05:30
];
2023-03-15 22:11:59 +05:30
};
};
2023-04-10 23:07:41 +05:30
};
2023-03-15 22:11:59 +05:30
}