refactor: remove unneeded imports, modularize, add catpuccin input

This commit is contained in:
EinEtwas 2024-10-16 13:24:02 +02:00
parent f41244b580
commit 47486140c1
4 changed files with 30 additions and 9 deletions

View file

@ -1,5 +1,20 @@
{ {
"nodes": { "nodes": {
"catppuccin": {
"locked": {
"lastModified": 1728407414,
"narHash": "sha256-B8LaxUP93eh+it8RW1pGq4SsU2kj7f0ipzFuhBvpON8=",
"owner": "catppuccin",
"repo": "nix",
"rev": "96cf8b4a05fb23a53c027621b1147b5cf9e5439f",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "nix",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -54,6 +69,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"catppuccin": "catppuccin",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"

View file

@ -8,24 +8,20 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
catppuccin.url = "github:catppuccin/nix";
}; };
outputs = { self, nixpkgs, nixos-hardware, ... } @ inputs: { outputs = { self, nixpkgs, nixos-hardware, ... } @ inputs: {
nixosConfigurations.rhea-laptop = nixpkgs.lib.nixosSystem { nixosConfigurations.rhea-laptop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
system = "x86_64-linux"; system = "x86_64-linux";
# List all Modules to load # List all Modules to load
modules = [ modules = [
nixos-hardware.nixosModules.framework-13-7040-amd nixos-hardware.nixosModules.framework-13-7040-amd
./modules/configuration.nix ./modules
./modules/hardware-configuration.nix
./modules/shell.nix
./modules/wayland.nix
./modules/fingerprint.nix
./home ./home
# ./modules/hyprland.nix
]; ];
}; };
}; };

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { pkgs, ... }:
{ {
# Bootloader. # Bootloader.
@ -68,7 +68,6 @@
# wget # wget
google-chrome google-chrome
fprintd fprintd
#home-manager
]; ];
environment.sessionVariables = { environment.sessionVariables = {

10
modules/default.nix Normal file
View file

@ -0,0 +1,10 @@
{
imports = [
./configuration.nix
./hardware-configuration.nix
./fingerprint.nix
./hyprland.nix
./shell.nix
./wayland.nix
];
}