-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: removed legacy code, formatted code and improved own libraries
- Loading branch information
Showing
65 changed files
with
797 additions
and
996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,39 @@ | ||
{ config, pkgs, isDevMode ? false, username ? "wittano", ... }: { | ||
{ config, pkgs, isDevMode ? false, ... }: { | ||
|
||
imports = [ ./hardware.nix ./networking.nix ]; | ||
|
||
home-manager.users.wittano = ./../../home/pc; | ||
|
||
modules = | ||
let | ||
enableWithDevMode = { | ||
modules = let | ||
enableWithDevMode = { | ||
enable = true; | ||
enableDevMode = isDevMode; | ||
}; | ||
in { | ||
desktop = { qtile = enableWithDevMode; }; | ||
editors.neovim.enable = true; | ||
dev = { | ||
goland.enable = true; | ||
clion.enable = true; | ||
}; | ||
hardware = { | ||
sound.enable = true; | ||
grub.enable = true; | ||
wifi.enable = true; | ||
virtualization = { | ||
enable = true; | ||
enableDevMode = isDevMode; | ||
}; | ||
in | ||
{ | ||
desktop = { | ||
qtile = enableWithDevMode; | ||
}; | ||
editors.neovim.enable = true; | ||
dev = { | ||
goland.enable = true; | ||
clion.enable = true; | ||
enableDocker = true; | ||
}; | ||
hardware = { | ||
sound.enable = true; | ||
grub.enable = true; | ||
wifi.enable = true; | ||
virtualization = { | ||
enable = true; | ||
enableDocker = true; | ||
}; | ||
nvidia.enable = true; | ||
}; | ||
services = { | ||
backup = { | ||
enable = true; | ||
backupDir = "/mnt/backup/wittano.nixos"; | ||
}; | ||
syncthing.enable = true; | ||
redshift.enable = true; | ||
nvidia.enable = true; | ||
}; | ||
services = { | ||
backup = { | ||
enable = true; | ||
backupDir = "/mnt/backup/wittano.nixos"; | ||
}; | ||
syncthing.enable = true; | ||
redshift.enable = true; | ||
}; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
{ lib, pkgs, dotfiles, home-manager, ownPackages, unstable, ... }: { | ||
importApp = cfg: name: | ||
import (./../modules/desktop/apps + "/${name}.nix") { inherit cfg pkgs lib dotfiles home-manager ownPackages unstable; }; | ||
desktopApps = config: cfg: | ||
let | ||
sourceDir = ./../modules/desktop/apps; | ||
appFiles = lib.attrsets.filterAttrs | ||
(n: v: ((lib.strings.hasSuffix ".nix" n) && v == "regular")) | ||
(builtins.readDir sourceDir); | ||
in lib.attrsets.mapAttrs' (n: v: { | ||
name = builtins.replaceStrings [ ".nix" ] [ "" ] n; | ||
value = import "${sourceDir}/${n}" { | ||
inherit cfg ownPackages pkgs dotfiles home-manager unstable config lib; | ||
}; | ||
}) appFiles; | ||
} | ||
|
Oops, something went wrong.