flake/flake.nix

157 lines
4.5 KiB
Nix
Raw Normal View History

2024-11-16 13:38:09 -05:00
{
description = "System Configuration @ cswimr 2024";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-25 14:19:57 -05:00
nix-flatpak.url = "github:gmodena/nix-flatpak";
2024-11-20 11:41:10 -05:00
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-16 13:38:09 -05:00
compose2nix = {
url = "github:aksiksi/compose2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser.url = "github:0xc000022070/zen-browser-flake";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
catppuccin-vsc.url = "https://flakehub.com/f/catppuccin/vscode/*.tar.gz";
2024-11-16 13:38:09 -05:00
};
outputs = { nixpkgs, home-manager, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ inputs.catppuccin-vsc.overlays.default ];
config.allowUnfree = true;
};
2024-11-16 13:38:09 -05:00
in {
nixosConfigurations = {
eclipse = nixpkgs.lib.nixosSystem {
system = system;
specialArgs = {
inherit inputs;
inherit pkgs;
system = system;
hostname = "eclipse";
};
2024-11-16 13:38:09 -05:00
modules = [
# imports
./hosts/eclipse.nix
./nixos/catppuccin.nix
2024-11-16 13:38:09 -05:00
./nixos/configuration.nix
2024-11-18 14:27:31 -05:00
./nixos/development.nix
2024-11-20 12:10:28 -05:00
./nixos/environment.nix
2024-11-25 14:19:57 -05:00
./nixos/flatpak.nix
./nixos/gaming.nix
2024-11-16 13:38:09 -05:00
./nixos/git.nix
./nixos/gui-pkgs.nix
2024-11-16 13:38:09 -05:00
./nixos/nvidia.nix
./nixos/nvim.nix
./nixos/pkg.nix
2024-11-22 09:07:36 -05:00
./nixos/shell.nix
2024-11-16 13:38:09 -05:00
./nixos/sudo.nix
./nixos/symlinks.nix
2024-11-16 13:38:09 -05:00
./nixos/tailscale.nix
{
# enable bluetooth
hardware.bluetooth.enable = true;
}
2024-11-20 11:41:10 -05:00
inputs.nixvim.nixosModules.nixvim
2024-11-25 14:19:57 -05:00
inputs.nix-flatpak.nixosModules.nix-flatpak
2024-11-16 13:38:09 -05:00
# Home Manager
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "bak";
extraSpecialArgs = {
inherit inputs;
inherit pkgs;
system = system;
hostname = "eclipse";
};
users.cswimr = {
imports = [
./home-manager/cswimr.nix
./home-manager/vscode.nix
{
programs.git.extraConfig.user.signingkey = "0EC431A8DA8F8087";
}
];
};
};
}
];
};
nebula = nixpkgs.lib.nixosSystem {
system = system;
specialArgs = {
inherit inputs;
inherit pkgs;
system = system;
hostname = "nebula";
};
modules = [
# imports
./hosts/nebula.nix
./nixos/catppuccin.nix
./nixos/configuration.nix
./nixos/development.nix
./nixos/environment.nix
./nixos/gaming.nix
./nixos/git.nix
./nixos/gui-pkgs.nix
./nixos/nvim.nix
./nixos/pkg.nix
./nixos/shell.nix
./nixos/sudo.nix
./nixos/symlinks.nix
./nixos/tailscale.nix
{
# enable bluetooth
hardware.bluetooth.enable = true;
}
inputs.nixvim.nixosModules.nixvim
inputs.nix-flatpak.nixosModules.nix-flatpak
# Home Manager
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "bak";
extraSpecialArgs = {
inherit inputs;
inherit pkgs;
system = system;
hostname = "nebula";
};
users.cswimr = {
imports = [
./home-manager/cswimr.nix
./home-manager/vscode.nix
{
programs.git.extraConfig.user.signingkey = "082F226A1D8C0860";
}
];
};
2024-11-16 13:38:09 -05:00
};
}
];
};
};
};
2024-11-16 13:38:09 -05:00
}