chore: update flakes
This commit is contained in:
parent
71623b5964
commit
e17cb8f893
50
flake.lock
generated
50
flake.lock
generated
@ -43,11 +43,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753300020,
|
"lastModified": 1755257397,
|
||||||
"narHash": "sha256-jRO3ELwG+FfYDBTDDhBJNjGuJjB4IgziuB1JWoz6l1A=",
|
"narHash": "sha256-VU+OHexL2y6y7yrpEc6bZvYYwoQg6aZK1b4YxT0yZCk=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "devenv",
|
"repo": "devenv",
|
||||||
"rev": "90266818017f7a6885edc75eb4a13b68862675ea",
|
"rev": "6f9c3d4722aa253631644329f7bda60b1d3d1b97",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -167,11 +167,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753373145,
|
"lastModified": 1755229570,
|
||||||
"narHash": "sha256-UhuUj46dobD/POOdVNxKvAvP3luI2T0MZPm2IXl266Y=",
|
"narHash": "sha256-soZegto0xXzG2zYlu/zjknDHv0Z7tRS5EQs+Z/VRTBg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "64796151f79e6f3834bfc55f07c5487708bb5b3f",
|
"rev": "11626a4383b458f8dc5ea3237eaa04e8ab1912f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -203,11 +203,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752773918,
|
"lastModified": 1755029779,
|
||||||
"narHash": "sha256-dOi/M6yNeuJlj88exI+7k154z+hAhFcuB8tZktiW7rg=",
|
"narHash": "sha256-3+GHIYGg4U9XKUN4rg473frIVNn8YD06bjwxKS1IPrU=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "nix",
|
"repo": "nix",
|
||||||
"rev": "031c3cf42d2e9391eee373507d8c12e0f9606779",
|
"rev": "b0972b0eee6726081d10b1199f54de6d2917f861",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -224,11 +224,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752985182,
|
"lastModified": 1754800038,
|
||||||
"narHash": "sha256-sX8Neff8lp3TCHai6QmgLr5AD8MdsQQX3b52C1DVXR8=",
|
"narHash": "sha256-UbLO8/0pVBXLJuyRizYOJigtzQAj8Z2bTnbKSec/wN0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "fafdcb505ba605157ff7a7eeea452bc6d6cbc23c",
|
"rev": "b65f8d80656f9fcbd1fecc4b7f0730f468333142",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -239,11 +239,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753250450,
|
"lastModified": 1755186698,
|
||||||
"narHash": "sha256-i+CQV2rPmP8wHxj0aq4siYyohHwVlsh40kV89f3nw1s=",
|
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fc02ee70efb805d3b2865908a13ddd4474557ecf",
|
"rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -282,11 +282,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753335654,
|
"lastModified": 1753595452,
|
||||||
"narHash": "sha256-XpegouCfuzYNECDpH0+J3UEdearlYhRkRgOZ97l16E8=",
|
"narHash": "sha256-vqkSDvh7hWhPvNjMjEDV4KbSCv2jyl2Arh73ZXe274k=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "f90bef2d994c88f075dbc2fcd81140e160351328",
|
"rev": "a5431dd02dc23d9ef1680e67777fed00fe5f7cda",
|
||||||
"revCount": 654,
|
"revCount": 665,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
|
||||||
},
|
},
|
||||||
@ -335,11 +335,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752544651,
|
"lastModified": 1754988908,
|
||||||
"narHash": "sha256-GllP7cmQu7zLZTs9z0J2gIL42IZHa9CBEXwBY9szT0U=",
|
"narHash": "sha256-t+voe2961vCgrzPFtZxha0/kmFSHFobzF00sT8p9h0U=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "2c8def626f54708a9c38a5861866660395bb3461",
|
"rev": "3223c7a92724b5d804e9988c6b447a0d09017d48",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -370,11 +370,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752725859,
|
"lastModified": 1754886070,
|
||||||
"narHash": "sha256-kjpmc7Y164ajPdscAZLFQTtzXP5sEE2dR30NuHe5lQY=",
|
"narHash": "sha256-MZDmxOkVKL1HY72bliN8Gxh0SYkHUa3W/1fTU2ke36I=",
|
||||||
"owner": "youwen5",
|
"owner": "youwen5",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "2276ddce91a949e0819d9e8c4b171c40ce770390",
|
"rev": "e37d2b326311320c8571111b3ef89b29d26d4b64",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
../../system
|
../../system
|
||||||
];
|
];
|
||||||
|
|
||||||
system = {
|
mySystem = {
|
||||||
boot = {
|
boot = {
|
||||||
kernel.hardened = true;
|
kernel.hardened = true;
|
||||||
systemd-boot = false;
|
systemd-boot = false;
|
||||||
|
@ -7,11 +7,10 @@
|
|||||||
imports = [
|
imports = [
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# ./services
|
|
||||||
../../system
|
../../system
|
||||||
];
|
];
|
||||||
|
|
||||||
system = {
|
mySystem = {
|
||||||
boot = {
|
boot = {
|
||||||
plymouth.enable = true;
|
plymouth.enable = true;
|
||||||
kernel = {
|
kernel = {
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
# imports = [
|
|
||||||
# ./gnome.nix
|
|
||||||
# ];
|
|
||||||
|
|
||||||
services = {
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
printing.enable = true;
|
|
||||||
openssh.enable = true;
|
|
||||||
fwupd.enable = true;
|
|
||||||
udev.extraRules = ''
|
|
||||||
ATTRS{name}=="*TPPS/2 IBM TrackPoint", ENV{ID_INPUT}="", ENV{ID_INPUT_MOUSE}="", ENV{ID_INPUT_POINTINGSTICK}=""
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager.gdm.enable = true;
|
|
||||||
desktopManager.gnome.enable = true;
|
|
||||||
xkb = {
|
|
||||||
layout = "fr";
|
|
||||||
variant = "bepo";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -5,11 +5,11 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
./system/hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../system
|
../../system
|
||||||
];
|
];
|
||||||
|
|
||||||
system = {
|
mySystem = {
|
||||||
boot = {
|
boot = {
|
||||||
extraModprobeConfig = ''
|
extraModprobeConfig = ''
|
||||||
options snd_usb_audio vid=0x1235 pid=0x8212 device_setup=1
|
options snd_usb_audio vid=0x1235 pid=0x8212 device_setup=1
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
./services
|
./services
|
||||||
];
|
];
|
||||||
|
|
||||||
system = {
|
mySystem = {
|
||||||
boot = {
|
boot = {
|
||||||
kernel = {
|
kernel = {
|
||||||
hardened = true;
|
hardened = true;
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.boot;
|
cfg = config.mySystem.boot;
|
||||||
in {
|
in {
|
||||||
options.system.boot = {
|
options.mySystem.boot = {
|
||||||
extraModprobeConfig = mkOption {
|
extraModprobeConfig = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
@ -51,7 +51,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config.boot = {
|
config.boot = {
|
||||||
initrd.kernelModules = lists.optional config.system.hardware.amdgpu.enable "amdgpu";
|
initrd.kernelModules = lists.optional config.mySystem.hardware.amdgpu.enable "amdgpu";
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = cfg.systemd-boot;
|
systemd-boot.enable = cfg.systemd-boot;
|
||||||
efi.canTouchEfiVariables = cfg.systemd-boot;
|
efi.canTouchEfiVariables = cfg.systemd-boot;
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.boot.plymouth;
|
cfg = config.mySystem.boot.plymouth;
|
||||||
in {
|
in {
|
||||||
options.system.boot.plymouth.enable = mkEnableOption "Enables Plymouth at system boot";
|
options.mySystem.boot.plymouth.enable = mkEnableOption "Enables Plymouth at system boot";
|
||||||
config.boot = mkIf cfg.enable {
|
config.boot = mkIf cfg.enable {
|
||||||
plymouth = {
|
plymouth = {
|
||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.boot.zram;
|
cfg = config.mySystem.boot.zram;
|
||||||
in {
|
in {
|
||||||
options.system.boot.zram = {
|
options.mySystem.boot.zram = {
|
||||||
enable = mkEnableOption "Enable ZRAM";
|
enable = mkEnableOption "Enable ZRAM";
|
||||||
memoryMax = mkOption {
|
memoryMax = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.misc;
|
cfg = config.mySystem.misc;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./boot
|
./boot
|
||||||
@ -19,7 +19,7 @@ in {
|
|||||||
./users
|
./users
|
||||||
];
|
];
|
||||||
|
|
||||||
options.system.misc = {
|
options.mySystem.misc = {
|
||||||
timezone = mkOption {
|
timezone = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "Europe/Paris";
|
default = "Europe/Paris";
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.desktop.hyprland;
|
cfg = config.mySystem.desktop.hyprland;
|
||||||
in {
|
in {
|
||||||
options.system.desktop.hyprland.enable = mkEnableOption "Enables Hyprland";
|
options.mySystem.desktop.hyprland.enable = mkEnableOption "Enables Hyprland";
|
||||||
config.programs.hyprland = mkIf cfg.enable {
|
config.programs.hyprland = mkIf cfg.enable {
|
||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
withUWSM = true;
|
withUWSM = true;
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.desktop.niri;
|
cfg = config.mySystem.desktop.niri;
|
||||||
in {
|
in {
|
||||||
options.system.desktop.niri.enable = mkEnableOption "Enables Niri";
|
options.mySystem.desktop.niri.enable = mkEnableOption "Enables Niri";
|
||||||
config.programs.niri = mkIf cfg.enable {
|
config.programs.niri = mkIf cfg.enable {
|
||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
};
|
};
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.desktop.xserver;
|
cfg = config.mySystem.desktop.xserver;
|
||||||
in {
|
in {
|
||||||
options.system.desktop.xserver = {
|
options.mySystem.desktop.xserver = {
|
||||||
enable = mkEnableOption "Enables xserver";
|
enable = mkEnableOption "Enables xserver";
|
||||||
de = mkOption {
|
de = mkOption {
|
||||||
type = types.enum ["gnome" "kde"];
|
type = types.enum ["gnome" "kde"];
|
||||||
@ -35,7 +35,7 @@ in {
|
|||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
videoDrivers = lists.optional config.system.hardware.amdgpu.enable "amdgpu";
|
videoDrivers = lists.optional config.mySystem.hardware.amdgpu.enable "amdgpu";
|
||||||
xkb = {
|
xkb = {
|
||||||
layout = "fr";
|
layout = "fr";
|
||||||
variant = "bepo_afnor";
|
variant = "bepo_afnor";
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.dev.docker;
|
cfg = config.mySystem.dev.docker;
|
||||||
in {
|
in {
|
||||||
options.system.dev.docker = {
|
options.mySystem.dev.docker = {
|
||||||
enable = mkEnableOption "Enable Docker";
|
enable = mkEnableOption "Enable Docker";
|
||||||
podman.enable = mkEnableOption "Enable Podman rather than Docker";
|
podman.enable = mkEnableOption "Enable Podman rather than Docker";
|
||||||
nvidia.enable = mkEnableOption "Activate Nvidia support";
|
nvidia.enable = mkEnableOption "Activate Nvidia support";
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.hardware.amdgpu;
|
cfg = config.mySystem.hardware.amdgpu;
|
||||||
in {
|
in {
|
||||||
options.system.hardware.amdgpu.enable = mkEnableOption "Enables an AMD GPU configuration";
|
options.mySystem.hardware.amdgpu.enable = mkEnableOption "Enables an AMD GPU configuration";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.hardware.bluetooth;
|
cfg = config.mySystem.hardware.bluetooth;
|
||||||
in {
|
in {
|
||||||
options.system.hardware.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
options.mySystem.hardware.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
hardware.bluetooth.enable = cfg.enable;
|
hardware.bluetooth.enable = cfg.enable;
|
||||||
services.blueman.enable = cfg.enable;
|
services.blueman.enable = cfg.enable;
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.hardware.corne;
|
cfg = config.mySystem.hardware.corne;
|
||||||
in {
|
in {
|
||||||
options.system.hardware.corne.allowHidAccess = mkEnableOption "Enable HID access to the corne keyboard";
|
options.mySystem.hardware.corne.allowHidAccess = mkEnableOption "Enable HID access to the corne keyboard";
|
||||||
config.services.udev = mkIf cfg.allowHidAccess {
|
config.services.udev = mkIf cfg.allowHidAccess {
|
||||||
extraRules = ''
|
extraRules = ''
|
||||||
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
|
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.hardware.ibmTrackpoint;
|
cfg = config.mySystem.hardware.ibmTrackpoint;
|
||||||
in {
|
in {
|
||||||
options.system.hardware.ibmTrackpoint.disable = mkEnableOption "Disable IBM’s trackpoint on ThinkPad";
|
options.mySystem.hardware.ibmTrackpoint.disable = mkEnableOption "Disable IBM’s trackpoint on ThinkPad";
|
||||||
config.services.udev = mkIf cfg.disable {
|
config.services.udev = mkIf cfg.disable {
|
||||||
extraRules = ''
|
extraRules = ''
|
||||||
ATTRS{name}=="*TPPS/2 IBM TrackPoint", ENV{ID_INPUT}="", ENV{ID_INPUT_MOUSE}="", ENV{ID_INPUT_POINTINGSTICK}=""
|
ATTRS{name}=="*TPPS/2 IBM TrackPoint", ENV{ID_INPUT}="", ENV{ID_INPUT_MOUSE}="", ENV{ID_INPUT_POINTINGSTICK}=""
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.hardware.opentablet;
|
cfg = config.mySystem.hardware.opentablet;
|
||||||
in {
|
in {
|
||||||
options.system.hardware.opentablet.enable = mkEnableOption "Enables OpenTablet drivers";
|
options.mySystem.hardware.opentablet.enable = mkEnableOption "Enables OpenTablet drivers";
|
||||||
config.hardware.opentabletdriver = mkIf cfg.enable {
|
config.hardware.opentabletdriver = mkIf cfg.enable {
|
||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
daemon.enable = true;
|
daemon.enable = true;
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.hardware.sound;
|
cfg = config.mySystem.hardware.sound;
|
||||||
in {
|
in {
|
||||||
options.system.hardware.sound = {
|
options.mySystem.hardware.sound = {
|
||||||
enable = mkEnableOption "Whether to enable sounds with Pipewire";
|
enable = mkEnableOption "Whether to enable sounds with Pipewire";
|
||||||
scarlett.enable = mkEnableOption "Activate support for Scarlett sound card";
|
scarlett.enable = mkEnableOption "Activate support for Scarlett sound card";
|
||||||
alsa = mkOption {
|
alsa = mkOption {
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.networking;
|
cfg = config.mySystem.networking;
|
||||||
in {
|
in {
|
||||||
options.system.networking = with types; {
|
options.mySystem.networking = with types; {
|
||||||
hostname = mkOption {
|
hostname = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
example = "gampo";
|
example = "gampo";
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.packages.appimage;
|
cfg = config.mySystem.packages.appimage;
|
||||||
in {
|
in {
|
||||||
options.system.packages.appimage.enable = mkEnableOption "Enables AppImage support";
|
options.mySystem.packages.appimage.enable = mkEnableOption "Enables AppImage support";
|
||||||
config.programs.appimage = mkIf cfg.enable {
|
config.programs.appimage = mkIf cfg.enable {
|
||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
binfmt = true;
|
binfmt = true;
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.packages.flatpak;
|
cfg = config.mySystem.packages.flatpak;
|
||||||
in {
|
in {
|
||||||
options.system.packages.flatpak = {
|
options.mySystem.packages.flatpak = {
|
||||||
enable = mkEnableOption "Enable Flatpak support";
|
enable = mkEnableOption "Enable Flatpak support";
|
||||||
builder.enable = mkEnableOption "Enable Flatpak builder";
|
builder.enable = mkEnableOption "Enable Flatpak builder";
|
||||||
};
|
};
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.packages.nix;
|
cfg = config.mySystem.packages.nix;
|
||||||
in {
|
in {
|
||||||
options.system.packages.nix = {
|
options.mySystem.packages.nix = {
|
||||||
allowUnfree = mkEnableOption "Enable unfree packages";
|
allowUnfree = mkEnableOption "Enable unfree packages";
|
||||||
disableSandbox = mkEnableOption "Disable Nix sandbox";
|
disableSandbox = mkEnableOption "Disable Nix sandbox";
|
||||||
gc = {
|
gc = {
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.programs.steam;
|
cfg = config.mySystem.programs.steam;
|
||||||
in {
|
in {
|
||||||
options.system.programs.steam.enable = mkEnableOption "Enables Steam and Steam hardware";
|
options.mySystem.programs.steam.enable = mkEnableOption "Enables Steam and Steam hardware";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs = {
|
programs = {
|
||||||
steam = {
|
steam = {
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.services.calibre;
|
cfg = config.mySystem.services.calibre;
|
||||||
in {
|
in {
|
||||||
options.system.services.calibre = {
|
options.mySystem.services.calibre = {
|
||||||
enable = mkEnableOption "Enable Calibre Web";
|
enable = mkEnableOption "Enable Calibre Web";
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.string;
|
type = types.string;
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.services.endlessh;
|
cfg = config.mySystem.services.endlessh;
|
||||||
in {
|
in {
|
||||||
options.system.services.endlessh = {
|
options.mySystem.services.endlessh = {
|
||||||
enable = mkEnableOption "Enables endlessh.";
|
enable = mkEnableOption "Enables endlessh.";
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.port;
|
type = types.port;
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.services.fwupd;
|
cfg = config.mySystem.services.fwupd;
|
||||||
in {
|
in {
|
||||||
options.system.services.fwupd.enable = mkEnableOption "Enable fwupd";
|
options.mySystem.services.fwupd.enable = mkEnableOption "Enable fwupd";
|
||||||
config.services.fwupd = mkIf cfg.enable {
|
config.services.fwupd = mkIf cfg.enable {
|
||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
};
|
};
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.services.jellyfin;
|
cfg = config.mySystem.services.jellyfin;
|
||||||
in {
|
in {
|
||||||
options.system.services.jellyfin = {
|
options.mySystem.services.jellyfin = {
|
||||||
enable = mkEnableOption "Enable Jellyfin";
|
enable = mkEnableOption "Enable Jellyfin";
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
type = types.string;
|
type = types.string;
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.services.plex;
|
cfg = config.mySystem.services.plex;
|
||||||
in {
|
in {
|
||||||
options.system.services.plex = {
|
options.mySystem.services.plex = {
|
||||||
enable = mkEnableOption "Enable Plex";
|
enable = mkEnableOption "Enable Plex";
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
type = types.string;
|
type = types.string;
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.services.printing;
|
cfg = config.mySystem.services.printing;
|
||||||
in {
|
in {
|
||||||
options.system.services.printing.enable = mkEnableOption "Enable printing with CUPS";
|
options.mySystem.services.printing.enable = mkEnableOption "Enable printing with CUPS";
|
||||||
config.services.printing = mkIf cfg.enable {
|
config.services.printing = mkIf cfg.enable {
|
||||||
inherit (cfg) enable;
|
inherit (cfg) enable;
|
||||||
};
|
};
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.services.ssh;
|
cfg = config.mySystem.services.ssh;
|
||||||
in {
|
in {
|
||||||
options.system.services.ssh = {
|
options.mySystem.services.ssh = {
|
||||||
enable = mkEnableOption "Enables OpenSSH";
|
enable = mkEnableOption "Enables OpenSSH";
|
||||||
allowedUsers = mkOption {
|
allowedUsers = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.services.sunshine;
|
cfg = config.mySystem.services.sunshine;
|
||||||
in {
|
in {
|
||||||
options.system.services.sunshine = {
|
options.mySystem.services.sunshine = {
|
||||||
enable = mkEnableOption "Enables Sunshine";
|
enable = mkEnableOption "Enables Sunshine";
|
||||||
autostart = mkEnableOption "Enables autostart";
|
autostart = mkEnableOption "Enables autostart";
|
||||||
};
|
};
|
||||||
@ -15,6 +15,6 @@ in {
|
|||||||
autoStart = cfg.autostart;
|
autoStart = cfg.autostart;
|
||||||
capSysAdmin = true;
|
capSysAdmin = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
settings.sunshine_name = config.system.networking.hostname;
|
settings.sunshine_name = config.mySystem.networking.hostname;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.system.users;
|
cfg = config.mySystem.users;
|
||||||
in {
|
in {
|
||||||
options.system.users = {
|
options.mySystem.users = {
|
||||||
root.disablePassword = mkEnableOption "Disables root password";
|
root.disablePassword = mkEnableOption "Disables root password";
|
||||||
phundrak.enable = mkEnableOption "Enables users phundrak";
|
phundrak.enable = mkEnableOption "Enables users phundrak";
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user