liminalOS/flake.nix

104 lines
3.6 KiB
Nix
Raw Normal View History

2024-07-11 03:56:19 -07:00
{
description = "System configuration flake.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-07-11 03:56:19 -07:00
home-manager = {
url = "github:nix-community/home-manager";
2024-07-11 03:56:19 -07:00
inputs.nixpkgs.follows = "nixpkgs";
};
stablepkgs.url = "github:nixos/nixpkgs/nixos-24.05";
bleedingpkgs.url = "github:nixos/nixpkgs/master";
2024-08-05 02:51:43 -07:00
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
homebrew-core = {
url = "github:homebrew/homebrew-core";
flake = false;
};
homebrew-cask = {
url = "github:homebrew/homebrew-cask";
flake = false;
};
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";
};
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";
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-05 02:51:43 -07:00
, bleedingpkgs, lix-module, nix-darwin, nix-homebrew, ... }@inputs: rec {
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 = [
2024-08-05 02:34:34 -07:00
./modules/nixos/nixos-configuration.nix
./modules/nixos/secureboot.nix
./modules/nixos/gaming.nix
./modules/nixos/audio.nix
./modules/nixos/nvidia.nix
./modules/nixos/networking.nix
./modules/common/fonts.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
lix-module.nixosModules.default
2024-07-21 19:02:10 -07:00
lanzaboote.nixosModules.lanzaboote
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 = {
imports = [
2024-08-05 02:51:43 -07:00
./modules/home-manager/linux/linux-home.nix
./modules/home-manager/linux/desktop.nix
./modules/home-manager/linux/programs.nix
./modules/home-manager/common/core.nix
2024-08-05 03:15:48 -07:00
./modules/home-manager/common/catppuccin.nix
inputs.catppuccin.homeManagerModules.catppuccin
];
2024-07-21 19:02:10 -07:00
};
}
];
};
2024-08-05 02:51:43 -07:00
formatter.aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.nixfmt;
# Build darwin flake using:
# $ darwin-rebuild build --flake .#Youwens-MacBook-Pro
darwinConfigurations."Youwens-MacBook-Pro" = nix-darwin.lib.darwinSystem {
specialArgs = { inherit inputs; };
modules = [
2024-08-05 03:15:48 -07:00
./modules/darwin/darwin-configuration.nix
2024-08-05 02:51:43 -07:00
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.youwen.imports = [
./modules/home-manager/darwin/darwin-home.nix
./modules/home-manager/common/core.nix
];
home-manager.backupFileExtension = "backup";
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
nix-homebrew.darwinModules.nix-homebrew
./modules/darwin/homebrew.nix
./modules/darwin/yabai.nix
./modules/darwin/skhd.nix
2024-08-05 02:51:43 -07:00
];
};
2024-07-11 03:56:19 -07:00
};
}