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": {
"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": {
"inputs": {
"nixpkgs": [
@ -54,6 +69,7 @@
},
"root": {
"inputs": {
"catppuccin": "catppuccin",
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs"

View file

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

View file

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