initial commit
This commit is contained in:
commit
53dc0a539d
13 changed files with 701 additions and 0 deletions
75
flake.nix
Normal file
75
flake.nix
Normal file
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
catppuccin.url = "github:catppuccin/nix";
|
||||
compose2nix = {
|
||||
url = "github:aksiksi/compose2nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
zen-browser.url = "github:MarceColl/zen-browser-flake";
|
||||
};
|
||||
outputs = { nixpkgs, home-manager, catppuccin, ... }@inputs:
|
||||
let system = "x86_64-linux";
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
eclipse = nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
modules = [
|
||||
# imports
|
||||
./nixos/configuration.nix
|
||||
./nixos/eclipse-hw-configuration.nix
|
||||
./nixos/environment.nix
|
||||
./nixos/git.nix
|
||||
./nixos/nvidia.nix
|
||||
./nixos/nvim.nix
|
||||
./nixos/pkg.nix
|
||||
./nixos/sudo.nix
|
||||
./nixos/tailscale.nix
|
||||
./nixos/zsh.nix
|
||||
|
||||
# flake packages
|
||||
{
|
||||
environment.systemPackages = with inputs;
|
||||
[
|
||||
compose2nix.packages.${system}.default
|
||||
zen-browser.packages.${system}.specific
|
||||
];
|
||||
}
|
||||
|
||||
# Catppuccin theme
|
||||
catppuccin.nixosModules.catppuccin
|
||||
{
|
||||
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
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.cswimr = {
|
||||
imports = [
|
||||
./home-manager/home.nix
|
||||
catppuccin.homeManagerModules.catppuccin
|
||||
{
|
||||
catppuccin.enable = true;
|
||||
catppuccin.flavor = "mocha";
|
||||
catppuccin.accent = "blue";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue