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-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";
|
|
|
|
};
|
2024-07-31 18:17:21 -07:00
|
|
|
lix-module = {
|
2024-08-16 06:42:35 -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-08-07 05:55:39 -07:00
|
|
|
apple-silicon = {
|
|
|
|
url = "github:tpwrules/nixos-apple-silicon";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
|
2024-08-16 06:42:35 -07:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
catppuccin,
|
|
|
|
lanzaboote,
|
|
|
|
stablepkgs,
|
|
|
|
bleedingpkgs,
|
|
|
|
lix-module,
|
|
|
|
nix-darwin,
|
|
|
|
nix-homebrew,
|
|
|
|
apple-silicon,
|
|
|
|
...
|
|
|
|
} @ inputs: rec {
|
|
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
|
|
|
nixosConfigurations = {
|
|
|
|
demeter = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit inputs;};
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/demeter
|
|
|
|
./modules/nixos/gaming
|
|
|
|
./modules/nixos/audio
|
|
|
|
./modules/nixos/networking
|
|
|
|
./modules/nixos/fonts
|
|
|
|
./modules/nixos/greeter
|
|
|
|
./modules/nixos/core
|
2024-08-07 01:01:58 -07:00
|
|
|
|
2024-08-16 06:42:35 -07:00
|
|
|
catppuccin.nixosModules.catppuccin
|
|
|
|
lix-module.nixosModules.default
|
|
|
|
lanzaboote.nixosModules.lanzaboote
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.backupFileExtension = "backup";
|
|
|
|
home-manager.users.youwen = {
|
|
|
|
imports = [
|
|
|
|
./users/youwen/linux/desktop
|
|
|
|
./users/youwen/linux/packages/x86_64
|
|
|
|
./users/youwen/linux/programs
|
|
|
|
./users/youwen/common/neofetch
|
|
|
|
./users/youwen/common
|
|
|
|
inputs.catppuccin.homeManagerModules.catppuccin
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
callisto = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit inputs;};
|
|
|
|
system = "aarch64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/callisto
|
|
|
|
./modules/nixos/audio
|
|
|
|
./modules/nixos/networking
|
|
|
|
./modules/nixos/fonts
|
|
|
|
./modules/nixos/greeter
|
|
|
|
./modules/nixos/core
|
2024-07-12 15:21:32 -07:00
|
|
|
|
2024-08-16 06:42:35 -07:00
|
|
|
apple-silicon.nixosModules.apple-silicon-support
|
|
|
|
catppuccin.nixosModules.catppuccin
|
|
|
|
lix-module.nixosModules.default
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.backupFileExtension = "backup";
|
|
|
|
home-manager.users.youwen = {
|
|
|
|
imports = [
|
|
|
|
./users/youwen/common
|
|
|
|
./users/youwen/common/neofetch/asahi-only.nix
|
|
|
|
./users/youwen/linux/laptop
|
|
|
|
./users/youwen/linux/packages/aarch-64
|
2024-08-07 06:05:42 -07:00
|
|
|
|
2024-08-16 06:42:35 -07:00
|
|
|
inputs.catppuccin.homeManagerModules.catppuccin
|
2024-08-11 12:03:57 -07:00
|
|
|
];
|
2024-08-16 06:42:35 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
signal-desktop =
|
|
|
|
bleedingpkgs.legacyPackages.${self.system}.signal-desktop;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2024-07-21 19:02:10 -07:00
|
|
|
};
|
2024-08-16 06:42:35 -07:00
|
|
|
adrastea = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = {inherit inputs;};
|
|
|
|
system = "x86_64-linux";
|
2024-08-05 02:51:43 -07:00
|
|
|
modules = [
|
2024-08-16 06:42:35 -07:00
|
|
|
./hosts/adrastea
|
|
|
|
./modules/nixos/gaming
|
|
|
|
./modules/nixos/audio
|
|
|
|
./modules/nixos/networking
|
|
|
|
./modules/nixos/fonts
|
|
|
|
./modules/nixos/greeter
|
|
|
|
./modules/nixos/core
|
|
|
|
|
|
|
|
catppuccin.nixosModules.catppuccin
|
|
|
|
lix-module.nixosModules.default
|
|
|
|
# lanzaboote.nixosModules.lanzaboote
|
|
|
|
home-manager.nixosModules.home-manager
|
2024-08-05 02:51:43 -07:00
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.backupFileExtension = "backup";
|
2024-08-16 06:42:35 -07:00
|
|
|
home-manager.users.youwen = {
|
|
|
|
imports = [
|
|
|
|
./users/youwen/linux/laptop
|
|
|
|
./users/youwen/linux/packages/x86_64
|
|
|
|
./users/youwen/linux/programs
|
|
|
|
./users/youwen/common
|
|
|
|
./users/youwen/common/neofetch
|
|
|
|
./hosts/adrastea/home-manager-overrides.nix
|
|
|
|
inputs.catppuccin.homeManagerModules.catppuccin
|
|
|
|
];
|
|
|
|
};
|
2024-08-05 02:51:43 -07:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
2024-08-16 06:42:35 -07:00
|
|
|
formatter.aarch64-darwin = nixpkgs.legacyPackages.aarch64-darwin.alejandra;
|
|
|
|
formatter.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.alejandra;
|
|
|
|
# Build darwin flake using:
|
|
|
|
# $ darwin-rebuild build --flake .#Youwens-MacBook-Pro
|
|
|
|
darwinConfigurations.phobos = nix-darwin.lib.darwinSystem {
|
|
|
|
specialArgs = {inherit inputs;};
|
|
|
|
modules = [
|
|
|
|
./hosts/phobos
|
|
|
|
home-manager.darwinModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.youwen.imports = [
|
|
|
|
./users/youwen/darwin/darwin-home.nix
|
|
|
|
./users/youwen/common/core.nix
|
|
|
|
./users/youwen/common/neofetch
|
|
|
|
];
|
|
|
|
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-16 16:13:47 -07:00
|
|
|
|
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = ["https://liminalos.cachix.org"];
|
|
|
|
extra-trusted-public-keys = ["liminalos.cachix.org-1:GpwgIRFfXwZtZaHA2RPaVGI2ErJKasbb15pkMmQ7dN4="];
|
|
|
|
allow-import-from-derivation = "true";
|
|
|
|
};
|
2024-07-11 03:56:19 -07:00
|
|
|
}
|