2024-07-11 03:56:19 -07:00
|
|
|
{
|
|
|
|
description = "System configuration flake.";
|
|
|
|
|
|
|
|
inputs = {
|
2024-07-31 16:52:12 -07:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-07-11 03:56:19 -07:00
|
|
|
home-manager = {
|
2024-07-31 16:52:12 -07:00
|
|
|
url = "github:nix-community/home-manager";
|
2024-07-11 03:56:19 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-31 16:52:12 -07:00
|
|
|
stablepkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-08-01 15:03:20 -07:00
|
|
|
bleedingpkgs.url = "github:nixos/nixpkgs/master";
|
2024-07-11 17:25:22 -07:00
|
|
|
catppuccin.url = "github:catppuccin/nix";
|
2024-07-12 15:21:32 -07:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.4.1";
|
|
|
|
|
|
|
|
# Optional but recommended to limit the size of your system closure.
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-31 18:17:21 -07:00
|
|
|
lix-module = {
|
2024-08-01 01:50:48 -07:00
|
|
|
url =
|
|
|
|
"https://git.lix.systems/lix-project/nixos-module/archive/2.90.0.tar.gz";
|
2024-07-31 18:17:21 -07:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
|
2024-08-01 01:50:48 -07:00
|
|
|
outputs = { self, nixpkgs, home-manager, catppuccin, lanzaboote, stablepkgs
|
2024-08-01 15:03:20 -07:00
|
|
|
, bleedingpkgs, lix-module, ... }@inputs: {
|
2024-07-21 19:02:10 -07:00
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
|
|
|
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
2024-08-03 18:33:40 -07:00
|
|
|
./modules/nixos/secureboot.nix
|
2024-07-12 15:21:32 -07:00
|
|
|
|
2024-07-21 19:02:10 -07:00
|
|
|
catppuccin.nixosModules.catppuccin
|
2024-07-11 17:25:22 -07:00
|
|
|
|
2024-07-31 18:17:21 -07:00
|
|
|
lix-module.nixosModules.default
|
|
|
|
|
2024-07-21 19:02:10 -07:00
|
|
|
lanzaboote.nixosModules.lanzaboote
|
2024-07-31 16:52:12 -07:00
|
|
|
|
2024-07-21 19:02:10 -07:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.backupFileExtension = "backup";
|
|
|
|
home-manager.users.youwen = {
|
2024-08-03 18:33:40 -07:00
|
|
|
imports = [
|
|
|
|
./home.nix
|
|
|
|
./modules/home-manager/linux/desktop.nix
|
2024-08-03 18:40:48 -07:00
|
|
|
./modules/home-manager/linux/programs.nix
|
|
|
|
./modules/home-manager/common/core.nix
|
|
|
|
inputs.catppuccin.homeManagerModules.catppuccin
|
2024-08-03 18:33:40 -07:00
|
|
|
];
|
2024-07-21 19:02:10 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
}
|