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
#i dont think this is right
#./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"];

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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