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-20 11:41:10 -05:00
|
|
|
nixvim = {
|
|
|
|
url = "github:nix-community/nixvim";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-11-16 13:38:09 -05:00
|
|
|
catppuccin.url = "github:catppuccin/nix";
|
|
|
|
compose2nix = {
|
|
|
|
url = "github:aksiksi/compose2nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-11-16 19:19:07 -05:00
|
|
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
2024-11-19 22:17:36 -05:00
|
|
|
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
|
|
|
};
|
2024-11-20 11:40:42 -05:00
|
|
|
outputs = { nixpkgs, home-manager, ... }@inputs:
|
2024-11-19 22:17:36 -05:00
|
|
|
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;
|
2024-11-19 22:17:36 -05:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
inherit pkgs;
|
|
|
|
system = system;
|
|
|
|
};
|
2024-11-16 13:38:09 -05:00
|
|
|
modules = [
|
|
|
|
# imports
|
2024-11-16 17:33:00 -05:00
|
|
|
./hosts/eclipse.nix
|
2024-11-16 21:00:38 -05:00
|
|
|
./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-17 10:23:27 -05:00
|
|
|
./nixos/gaming.nix
|
2024-11-16 13:38:09 -05:00
|
|
|
./nixos/git.nix
|
2024-11-16 17:26:05 -05:00
|
|
|
./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/tailscale.nix
|
|
|
|
|
2024-11-16 21:00:38 -05:00
|
|
|
{
|
|
|
|
# enable bluetooth
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
}
|
|
|
|
|
2024-11-20 11:41:10 -05:00
|
|
|
inputs.nixvim.nixosModules.nixvim
|
2024-11-16 13:38:09 -05:00
|
|
|
|
|
|
|
# Catppuccin theme
|
2024-11-20 11:40:42 -05:00
|
|
|
inputs.catppuccin.nixosModules.catppuccin
|
2024-11-16 13:38:09 -05:00
|
|
|
{
|
|
|
|
catppuccin.enable = true;
|
|
|
|
catppuccin.flavor = "mocha";
|
|
|
|
catppuccin.accent = "blue";
|
|
|
|
boot.loader.grub.catppuccin.enable = true;
|
|
|
|
services.displayManager.sddm.catppuccin.enable = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Home Manager
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2024-11-19 22:17:36 -05:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
backupFileExtension = "bak";
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
inherit pkgs;
|
|
|
|
system = system;
|
|
|
|
};
|
|
|
|
users.cswimr = {
|
|
|
|
imports = [
|
|
|
|
./home-manager/cswimr.nix
|
|
|
|
./home-manager/vscode.nix
|
2024-11-20 11:40:42 -05:00
|
|
|
inputs.catppuccin.homeManagerModules.catppuccin
|
2024-11-19 22:17:36 -05:00
|
|
|
{
|
|
|
|
catppuccin.enable = true;
|
|
|
|
catppuccin.flavor = "mocha";
|
|
|
|
catppuccin.accent = "blue";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-11-16 13:38:09 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|