NixOS configuration ๐Ÿช„

๐Ÿš‘๏ธ ++ โœจ Added new kanshi workspace ++ docker now own module

Signed-off-by: Xaiya Schumin <d.schumin@proton.me>

+71 -5
+9 -1
modules/home/desktop/sway/config/workspaces.nix
··· 10 10 "LG Electronics LG ULTRAFINE 203NTFA8L891" = { 11 11 scale = "1.3"; 12 12 }; 13 - 14 13 "LG Electronics LG ULTRAFINE 404NTGY9M335" = { 15 14 scale = "1.3"; 16 15 }; 17 16 "LG Electronics LG ULTRAFINE 404NTYT9M282" = { 18 17 scale = "1.3"; 19 18 }; 19 + "LG Electronics LG ULTRAFINE 406NTRL13990" = { 20 + scale = "1.3"; 21 + }; 22 + "LG Electronics LG ULTRAFINE 406NTYT13970" = { 23 + scale = "1.3"; 24 + }; 20 25 }; 21 26 22 27 workspaceOutputAssign = [ ··· 25 30 "Philips Consumer Electronics Company PHL 272B4Q AU11526001821" # Main screen office 26 31 "LG Electronics LG ULTRAFINE 203NTXR8L890" # Main screen office (2nd workplace) 27 32 "LG Electronics LG ULTRAFINE 404NTGY9M335" # Main screen office (3rd workplace) 33 + "LG Electronics LG ULTRAFINE 406NTYT13970" # Main screen office (5th workplace) 28 34 "AOC 2460G4 0x0000A8E2" # Main screen home 29 35 "eDP-2" # Framework Laptop Screen 30 36 ]; ··· 37 43 "Philips Consumer Electronics Company PHL 272B4Q AU11531001040" # Second screen office 38 44 "LG Electronics LG ULTRAFINE 203NTFA8L891" # Second screen office (2nd workplace) 39 45 "LG Electronics LG ULTRAFINE 404NTYT9M282" # Second screen office (3rd workplace) 46 + "LG Electronics LG ULTRAFINE 406NTRL13990" # Second screen office (5th workplace) 40 47 "Acer Technologies RT240Y T75EE0042411" # Second Screen home 48 + 41 49 "eDP-2" 42 50 ]; 43 51
+1
modules/home/desktop/sway/packages/kanshi/default.nix
··· 16 16 ./docked_second_office.nix 17 17 ./docked_third_office.nix 18 18 ./docked_fourth_office.nix 19 + ./docked_fived_office.nix 19 20 ]; 20 21 21 22 config = mkIf sway.enable {
+32
modules/home/desktop/sway/packages/kanshi/docked_fived_office.nix
··· 1 + { 2 + services.kanshi.settings = [ 3 + { 4 + profile = { 5 + name = "docked_office_fived"; 6 + outputs = [ 7 + { 8 + criteria = "eDP-2"; 9 + 10 + position = "6000,258"; 11 + mode = "2560x1600@165.000Hz"; 12 + } 13 + 14 + { 15 + criteria = "LG Electronics LG ULTRAFINE 406NTYT13970"; 16 + 17 + position = "2160,626"; 18 + mode = "3840x2160@60.000Hz"; 19 + } 20 + 21 + { 22 + criteria = "LG Electronics LG ULTRAFINE 406NTRL13990"; 23 + 24 + transform = "90"; 25 + position = "0,0"; 26 + mode = "3840x2160@60.000Hz"; 27 + } 28 + ]; 29 + }; 30 + } 31 + ]; 32 + }
+1
modules/nixos/services/default.nix
··· 3 3 imports = [ 4 4 ./postgres.nix 5 5 ./nginx.nix 6 + ./docker.nix 6 7 7 8 ./minecraft.nix 8 9 ./vaultwarden.nix
+23
modules/nixos/services/docker.nix
··· 1 + { lib, config, self, pkgs, ... }: 2 + let 3 + inherit (lib) mkIf; 4 + 5 + inherit (self.lib.modules) mkPackageOpt; 6 + cfg = config.sylveon.services.docker; 7 + in 8 + { 9 + options.sylveon.services.docker = 10 + mkPackageOpt pkgs.docker "Docker for managing"; 11 + 12 + config = mkIf cfg.enable { 13 + virtualisation.docker = { 14 + enable = true; 15 + storageDriver = "btrfs"; 16 + 17 + rootless = { 18 + enable = true; 19 + setSocketVariable = true; 20 + }; 21 + }; 22 + }; 23 + }
+1
systems/apricot/default.nix
··· 31 31 services = { 32 32 postgres.enable = true; 33 33 nginx.enable = true; 34 + docker.enable = true; 34 35 35 36 vaultwarden.enable = true; 36 37 gitlab.enable = true;
+4 -4
systems/pineapple/default.nix
··· 26 26 pkgs.lutris 27 27 ]; 28 28 29 - virtualisation.docker = { 30 - enable = true; 31 - }; 32 - 33 29 services.gnome.gnome-keyring.enable = true; 34 30 35 31 # --- TEMPORARY --- ··· 51 47 "xaiya" 52 48 "blmedia" 53 49 ]; 50 + }; 51 + 52 + services = { 53 + docker.enable = true; 54 54 }; 55 55 }; 56 56