i finally did it oh my god

This commit is contained in:
Sakooooo 2023-07-08 17:39:19 +03:00
parent 1864313574
commit 932354984a
Signed by: sako
GPG key ID: 3FD715D87D7725E0
6 changed files with 42 additions and 6 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
result

View file

@ -1,11 +1,11 @@
{ config, inputs, pkgs, lib, home-manager, ...}:
{ config, inputs, outputs, pkgs, lib, home-manager, ...}:
{
imports = [
# home manager
inputs.home-manager.nixosModules.default
# modules
#i dont think this is right
./modules
outputs.nixosModules.desktop
];
nix.settings.experimental-features = [ "nix-command" "flakes"];

View file

@ -19,6 +19,12 @@
layout = "us";
};
modules = {
desktop = {
kitty.enable = true;
};
};
# Nvidia Drivers
hardware.opengl = {
enable = true;
@ -150,6 +156,7 @@
options = "--delete-older-than 7d";
};
home-manager.useUserPackages = true;
home-manager.users.sako = { pkgs, ...}: {
# CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!!
@ -178,9 +185,6 @@
sxhkd = {
source = ../../config/sxhkd;
};
kitty = {
source = ../../config/kitty;
};
"qutebrowser/config.py" = {
source = ../../config/qutebrowser/config.py;
};

View file

@ -1 +1,3 @@
{}
{
desktop = import ./desktop;
}

View file

@ -0,0 +1,5 @@
{
imports = [
./kitty
];
}

View file

@ -0,0 +1,24 @@
{ options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.kitty;
in
{
options.modules.desktop.kitty = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
kitty
];
home-manager.users.sako = { pkgs , ...}: {
xdg.configFile = {
kitty = {
source = ../../../config/kitty;
};
};
};
};
}