reenabled docker and winboat for clhickey-nixos
This commit is contained in:
parent
f04b6025d6
commit
946fb550e9
4 changed files with 20 additions and 5 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
1
cos.nix
1
cos.nix
|
|
@ -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
15
docker.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue