please work

This commit is contained in:
Sakooooo 2023-07-07 22:46:47 +03:00
parent 3ea2da924a
commit 42ade27956
Signed by: sako
GPG key ID: 3FD715D87D7725E0
22 changed files with 108 additions and 21 deletions

View file

@ -6,6 +6,32 @@
# modules # modules
#i dont think this is right #i dont think this is right
#./modules #./modules
outputs.nixosModules.desktop
outputs.nixosModules.desktop.bspwm
outputs.nixosModules.desktop.kitty
outputs.nixosModules.desktop.keepassxc
outputs.nixosModules.desktop.web.qutebrowser
outputs.nixosModules.desktop.game.steam
outputs.nixosModules.desktop.game.wine
outputs.nixosModules.desktop.game.lutris
outputs.nixosModules.desktop.chat.discord
outputs.nixosModules.dev
outputs.nixosModules.dev.editors
outputs.nixosModules.dev.editors.nvim
outputs.nixosModules.dev.cpp
outputs.nixosModules.dev.javascript
outputs.nixosModules.dev.python
outputs.nixosModules.dev.rust
outputs.nixosModules.devices
outputs.nixosModules.devices.nvidia
outputs.nixosModules.devices.pipewire
outputs.nixosModules.devices.bluetooth
outputs.nixosModules.media
outputs.nixosModules.media.mpd
outputs.nixosModules.media.ncmpcpp
outputs.nixosModules.shell
outputs.nixosModules.shell.newsboat
outputs.nixosModules.shell.zsh
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes"]; nix.settings.experimental-features = [ "nix-command" "flakes"];

View file

@ -7,6 +7,7 @@
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../default.nix ../../default.nix
]; ];
modules = { modules = {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.desktop.bspwm; let cfg = config.modules.desktop.bspwm;
in { in {
options.modules.desktop.bspwm = { options.modules.desktop.bspwm = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.desktop.chat.discord; let cfg = config.modules.desktop.chat.discord;
in { in {
options.modules.desktop.chat.discord = { options.modules.desktop.chat.discord = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.desktop.game.lutris; let cfg = config.modules.desktop.game.lutris;
in { in {
options.modules.desktop.game.lutris = { options.modules.desktop.game.lutris = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.desktop.game.steam; let cfg = config.modules.desktop.game.steam;
in { in {
options.modules.desktop.game.steam = { options.modules.desktop.game.steam = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -2,8 +2,11 @@
with lib; with lib;
let cfg = config.modules.desktop.game.wine; let cfg = config.modules.desktop.game.wine;
in { in {
options.modules.desktop.game.wine= { options.modules.desktop.game.wine = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.desktop.keepassxc; let cfg = config.modules.desktop.keepassxc;
in { in {
options.modules.desktop.keepassxc = { options.modules.desktop.keepassxc = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [ users.users.sako.packages = with pkgs; [

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.desktop.kitty; let cfg = config.modules.desktop.kitty;
in { in {
options.modules.desktop.kitty = { options.modules.desktop.kitty = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.web.qutebrowser; let cfg = config.modules.web.qutebrowser;
in { in {
options.modules.web.qutebrowser = { options.modules.web.qutebrowser = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.dev.cpp; let cfg = config.modules.dev.cpp;
in { in {
options.modules.dev.cpp = { options.modules.dev.cpp = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.dev.editors.nvim; let cfg = config.modules.dev.editors.nvim;
in { in {
options.modules.dev.editors.nvim = { options.modules.dev.editors.nvim = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.dev.javascript; let cfg = config.modules.dev.javascript;
in { in {
options.modules.dev.javascript = { options.modules.dev.javascript = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.dev.python; let cfg = config.modules.dev.python;
in { in {
options.modules.dev.python= { options.modules.dev.python= {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.dev.rust; let cfg = config.modules.dev.rust;
in { in {
options.modules.dev.rust = { options.modules.dev.rust = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.devices.bluetooth; let cfg = config.modules.devices.bluetooth;
in { in {
options.modules.devices.bluetooth = { options.modules.devices.bluetooth = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.devices.nvidia; let cfg = config.modules.devices.nvidia;
in { in {
options.modules.devices.nvidia = { options.modules.devices.nvidia = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.devices.pipewire; let cfg = config.modules.devices.pipewire;
in { in {
options.modules.devices.pipewire= { options.modules.devices.pipewire= {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.media.mpd; let cfg = config.modules.media.mpd;
in { in {
options.modules.media.mpd = { options.modules.media.mpd = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.mpd = { services.mpd = {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.media.ncmpcpp; let cfg = config.modules.media.ncmpcpp;
in { in {
options.modules.media.ncmpcpp = { options.modules.media.ncmpcpp = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.shell.newsboat; let cfg = config.modules.shell.newsboat;
in { in {
options.modules.shell.newsboat= { options.modules.shell.newsboat= {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -3,7 +3,10 @@ with lib;
let cfg = config.modules.shell.zsh; let cfg = config.modules.shell.zsh;
in { in {
options.modules.shell.zsh = { options.modules.shell.zsh = {
enable = mkBoolOpt false; enable = mkOption {
type = types.bool;
default = false;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {