.
This commit is contained in:
parent
db512e1f74
commit
e01ffa4cec
14 changed files with 14 additions and 32 deletions
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
ls = "eza -al";
|
ls = "eza -al";
|
||||||
};
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
desktop = {
|
desktop = {
|
||||||
plasma.enable = true;
|
plasma.enable = true;
|
||||||
|
type = "wayland";
|
||||||
|
|
||||||
terminal = {
|
terminal = {
|
||||||
default = "alacritty";
|
default = "alacritty";
|
||||||
|
|
|
@ -32,9 +32,4 @@ in
|
||||||
|
|
||||||
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
services = {
|
|
||||||
power-profiles-deamon-enable = false;
|
|
||||||
thermald.enable = false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,9 +30,4 @@ in
|
||||||
|
|
||||||
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
services = {
|
|
||||||
power-profiles-deamon-enable = false;
|
|
||||||
thermald.enable = false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ in {
|
||||||
enable = mkEnableOption "network manager";
|
enable = mkEnableOption "network manager";
|
||||||
};
|
};
|
||||||
|
|
||||||
config =mkIf cfg.networkManager.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
|
@ -14,7 +14,7 @@ in
|
||||||
config = mkMerge [
|
config = mkMerge [
|
||||||
(mkIf config.modules.networking.samba.sharing.enable {
|
(mkIf config.modules.networking.samba.sharing.enable {
|
||||||
users = {
|
users = {
|
||||||
group.samba-guest = {};
|
groups.samba-guest = {};
|
||||||
users.samba-guest = {
|
users.samba-guest = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
description = "Residence of our Samba guest users";
|
description = "Residence of our Samba guest users";
|
||||||
|
|
|
@ -20,6 +20,7 @@ in
|
||||||
"${config.user.home}/Github/.files"
|
"${config.user.home}/Github/.files"
|
||||||
]);
|
]);
|
||||||
hostDir = mkOpt path "${config.kaas.dir}/hosts/${config.networking.hostName}";
|
hostDir = mkOpt path "${config.kaas.dir}/hosts/${config.networking.hostName}";
|
||||||
|
configDir = mkOpt path "${config.kaas.dir}/config";
|
||||||
modulesDir = mkOpt path "${config.kaas.dir}/modules";
|
modulesDir = mkOpt path "${config.kaas.dir}/modules";
|
||||||
themesDir = mkOpt path "${config.kaas.modulesDir}/themes";
|
themesDir = mkOpt path "${config.kaas.modulesDir}/themes";
|
||||||
};
|
};
|
||||||
|
|
|
@ -79,7 +79,6 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
configFile = "${directory}/sabnzbd/config.ini";
|
configFile = "${directory}/sabnzbd/config.ini";
|
||||||
port = 5001;
|
|
||||||
|
|
||||||
user = user;
|
user = user;
|
||||||
group = group;
|
group = group;
|
||||||
|
|
|
@ -90,7 +90,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.configFile.btop-theme = let
|
create.configFile.btop-theme = let
|
||||||
inherit (config.modules.themes) active;
|
inherit (config.modules.themes) active;
|
||||||
in
|
in
|
||||||
mkIf (active != null) {
|
mkIf (active != null) {
|
||||||
|
|
|
@ -132,10 +132,10 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.configFile.zsh-abbreviations = {
|
create.configFile.zsh-abbreviations = {
|
||||||
target = "zsh/abbreviations";
|
target = "zsh/abbreviations";
|
||||||
text = let
|
text = let
|
||||||
abbrevs = import "${config.snowflake.configDir}/shell-abbr";
|
abbrevs = import "${config.kaas.configDir}/shell-abbr";
|
||||||
in ''
|
in ''
|
||||||
${concatStrings (mapAttrsToList
|
${concatStrings (mapAttrsToList
|
||||||
(k: v: "abbr ${k}=${escapeNixString v}")
|
(k: v: "abbr ${k}=${escapeNixString v}")
|
||||||
|
|
|
@ -164,12 +164,7 @@ in {
|
||||||
package = iconTheme.package;
|
package = iconTheme.package;
|
||||||
};
|
};
|
||||||
gtk3.bookmarks = map (dir: "file://${config.user.home}/" + dir) [
|
gtk3.bookmarks = map (dir: "file://${config.user.home}/" + dir) [
|
||||||
"Workspace/public/snowflake"
|
"data/Github/.files"
|
||||||
"Workspace/public/cs-notes"
|
|
||||||
"Workspace/public/notebook"
|
|
||||||
"Library/unexplored"
|
|
||||||
"Library/unexplored/mathematics"
|
|
||||||
"Library/unexplored/programming"
|
|
||||||
];
|
];
|
||||||
gtk4.extraConfig = {
|
gtk4.extraConfig = {
|
||||||
gtk-cursor-blink = false;
|
gtk-cursor-blink = false;
|
||||||
|
|
|
@ -97,10 +97,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
editor = {
|
editor = {
|
||||||
helix = {
|
|
||||||
dark = "everforrest";
|
|
||||||
light = "everforrest_storm";
|
|
||||||
};
|
|
||||||
neovim = {
|
neovim = {
|
||||||
dark = "everforrest";
|
dark = "everforrest";
|
||||||
light = "everforrest";
|
light = "everforrest";
|
||||||
|
|
|
@ -3,10 +3,10 @@ let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.virtualization = let
|
options.modules.virtualisation = let
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = mkEnableOption "enable virtualization";
|
enable = mkEnableOption "enable virtualisation";
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -2,17 +2,17 @@
|
||||||
let
|
let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
|
|
||||||
cfg = config.modules.virtualization.podman;
|
cfg = config.modules.virtualisation.podman;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.virtualization.podman = let
|
options.modules.virtualisation.podman = let
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = mkEnableOption "enable podman";
|
enable = mkEnableOption "enable podman";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf options.modules.virtualization.podman.enable {
|
config = mkIf options.modules.virtualisation.podman.enable {
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
containers.enable = true;
|
containers.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue