reenabled docker and winboat for clhickey-nixos

This commit is contained in:
Clayton Hickey 2025-10-30 14:05:31 -04:00
parent f04b6025d6
commit 946fb550e9
4 changed files with 20 additions and 5 deletions

View file

@ -9,6 +9,9 @@
cos.username = "clhickey"; cos.username = "clhickey";
cos.hostName = "clhickey-nixos"; cos.hostName = "clhickey-nixos";
cos.winboat.enable = true;
cos.docker.enable = true;
boot = { boot = {
loader = { loader = {
systemd-boot.enable = true; systemd-boot.enable = true;

View file

@ -4,6 +4,7 @@
./hyprland.nix ./hyprland.nix
./wireguard.nix ./wireguard.nix
./winboat.nix ./winboat.nix
./docker.nix
"${inputs.home-manager}/nixos" "${inputs.home-manager}/nixos"
]; ];

15
docker.nix Normal file
View file

@ -0,0 +1,15 @@
{ lib, config, ... }:
let cfg = config.cos.docker; in
{
options.cos.docker = {
enable = lib.mkEnableOption "Enable Docker";
};
config = lib.mkIf cfg.enable {
virtualisation.docker.enable = true;
users.users.${config.cos.username}.extraGroups = [
"docker"
];
};
}

View file

@ -8,11 +8,7 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
virtualisation.docker.enable = true; cos.docker.enable = true;
users.users.${config.cos.username}.extraGroups = [
"docker"
];
environment.systemPackages = [ environment.systemPackages = [
inputs.winboat.packages.x86_64-linux.winboat inputs.winboat.packages.x86_64-linux.winboat