i finally did it oh my god
This commit is contained in:
parent
1864313574
commit
932354984a
6 changed files with 42 additions and 6 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
result
|
|
@ -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"];
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
{}
|
||||
{
|
||||
desktop = import ./desktop;
|
||||
}
|
||||
|
|
5
modules/desktop/default.nix
Normal file
5
modules/desktop/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./kitty
|
||||
];
|
||||
}
|
24
modules/desktop/kitty/default.nix
Normal file
24
modules/desktop/kitty/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue