Rename and redescript some options, continue reducing my flake to dust
This commit is contained in:
parent
7976a8c9ec
commit
912fe5d454
10 changed files with 23 additions and 22 deletions
|
@ -68,8 +68,9 @@
|
|||
inherit modules;
|
||||
specialArgs = inputs;
|
||||
};
|
||||
mkHome = modules: pkgs: hm.lib.homeManagerConfiguration {
|
||||
inherit modules pkgs;
|
||||
mkHome = modules: channel: arch: hm.lib.homeManagerConfiguration {
|
||||
inherit modules;
|
||||
pkgs = builtins.getAttr arch channel.legacyPackages;
|
||||
extraSpecialArgs = inputs;
|
||||
};
|
||||
in {
|
||||
|
@ -89,8 +90,8 @@
|
|||
|
||||
# nh home switch /path -c arch
|
||||
homeConfigurations = {
|
||||
x86 = mkHome [ ./modules/home ] stable.legacyPackages.x86_64-linux;
|
||||
aarch = mkHome [ ./modules/home ] stable.legacyPackages.aarch64-linux;
|
||||
x86 = mkHome [ ./modules/home ] stable "x86_64-linux";
|
||||
aarch = mkHome [ ./modules/home ] stable "aarch64-linux";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
imports = [ jovian.nixosModules.jovian ];
|
||||
|
||||
options.system.steamdeck.enable = lib.mkEnableOption "Enable Jovian NixOS environment";
|
||||
options.system.steamdeck.enable = lib.mkEnableOption "Jovian NixOS environment";
|
||||
|
||||
config = lib.mkIf config.system.steamdeck.enable {
|
||||
jovian = {
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
];
|
||||
|
||||
options.home = with lib; {
|
||||
desktop.enable = mkEnableOption "Enable desktop programs and services.";
|
||||
gaming.enable = mkEnableOption "Enable gaming apps and programs";
|
||||
production.enable = mkEnableOption "Enable apps for visual productivity";
|
||||
remote-desktop.enable = mkEnableOption "Enable apps for visual productivity";
|
||||
school.enable = mkEnableOption "Enable apps for visual productivity";
|
||||
desktop.enable = mkEnableOption "Desktop programs and services";
|
||||
gaming.enable = mkEnableOption "Gaming apps and programs";
|
||||
production.enable = mkEnableOption "Apps for visual productivity";
|
||||
remote-desktop.enable = mkEnableOption "Apps for remote desktop";
|
||||
school.enable = mkEnableOption "Apps for school and college";
|
||||
};
|
||||
|
||||
config.home.stateVersion = "24.11";
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# NixOS
|
||||
nhs = "nh os switch";
|
||||
nixclean = "nix store gc; nix store optimise";
|
||||
nixpurge = "doas nix-collect-garbage --delete-old";
|
||||
nixpurge = "sudo nix-collect-garbage --delete-old";
|
||||
|
||||
# Shortcuts
|
||||
ff = "clear && fastfetch";
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
gtk.gtk3.bookmarks = [
|
||||
"file:///home/${config.home.username}/Keepers"
|
||||
"file:///home/${config.home.username}/Downloads"
|
||||
"file:///home/${config.home.username}/Documents"
|
||||
"file:///home/${config.home.username}/Videos"
|
||||
"file:///home/${config.home.username}/Pictures/Screenshots"
|
||||
"file://${config.home.homeDirectory}/Keepers"
|
||||
"file://${config.home.homeDirectory}/Downloads"
|
||||
"file://${config.home.homeDirectory}/Documents"
|
||||
"file://${config.home.homeDirectory}/Videos"
|
||||
"file://${config.home.homeDirectory}/Pictures/Screenshots"
|
||||
"file:///etc/nixos"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
];
|
||||
|
||||
options.system = with lib; {
|
||||
desktop.enable = mkEnableOption "Enable desktop apps and services";
|
||||
server.enable = mkEnableOption "Enable server apps and services";
|
||||
desktop.enable = mkEnableOption "Desktop apps and services";
|
||||
server.enable = mkEnableOption "Server apps and services";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.system.nvidia.enable = lib.mkEnableOption "Enable Nvidia graphic drivers";
|
||||
options.system.nvidia.enable = lib.mkEnableOption "Nvidia graphic drivers";
|
||||
|
||||
config = lib.mkIf config.system.nvidia.enable {
|
||||
hardware.nvidia = {
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
./simplenix
|
||||
];
|
||||
|
||||
options.services.mailserver.enable = lib.mkEnableOption "Enable Simple NixOS Mailserver";
|
||||
options.services.mailserver.enable = lib.mkEnableOption "Simple NixOS Mailserver";
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
./user
|
||||
];
|
||||
|
||||
options.services.webserver.enable = lib.mkEnableOption "Enable nginx webpages";
|
||||
options.services.webserver.enable = lib.mkEnableOption "Nginx webpages";
|
||||
|
||||
config = lib.mkIf config.services.nginx.enable {
|
||||
services.nginx = {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
openPeerPorts = true;
|
||||
settings = {
|
||||
anti-brute-force-enabled = true;
|
||||
rpc-whitelist-enabled = false;
|
||||
rpc-whitelist-enabled = false;
|
||||
};
|
||||
};
|
||||
environment.persistence."/persist".directories = [ "/var/lib/transmission" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue