From da55e963be6a0f03525165422eb7cf3b844e3ce7 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 27 May 2024 01:56:50 +0200 Subject: [PATCH 1/2] nix-os/udev: create --- hosts/main.nix | 1 + hosts/tablet.nix | 1 + hosts/vm.nix | 1 + nix-os/udev.nix | 5 +++++ 4 files changed, 8 insertions(+) create mode 100644 nix-os/udev.nix diff --git a/hosts/main.nix b/hosts/main.nix index 7b7cbdf..db6241e 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -18,6 +18,7 @@ ../nix-os/account.nix ../nix-os/xdg-default-apps.nix ../nix-os/services/nix-binary-cache.nix + ../nix-os/udev.nix ]; config = { diff --git a/hosts/tablet.nix b/hosts/tablet.nix index b369d47..4cb94ff 100644 --- a/hosts/tablet.nix +++ b/hosts/tablet.nix @@ -11,6 +11,7 @@ ../nix-os/desktopManagers/gnome.nix ../nix-os/displayManagers/gdm.nix + ../nix-os/udev.nix ]; config = { diff --git a/hosts/vm.nix b/hosts/vm.nix index c91a794..0b99d01 100644 --- a/hosts/vm.nix +++ b/hosts/vm.nix @@ -14,5 +14,6 @@ ../nix-os/adb.nix ../nix-os/account.nix ../nix-os/xdg-default-apps.nix + ../nix-os/udev.nix ]; } \ No newline at end of file diff --git a/nix-os/udev.nix b/nix-os/udev.nix new file mode 100644 index 0000000..5c27b88 --- /dev/null +++ b/nix-os/udev.nix @@ -0,0 +1,5 @@ +{ + config = { + hardware.ledger.enable = true; + }; +} From 4d4a007a005fa842406f55a8f7e5d27b2330d49a Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 27 May 2024 01:58:13 +0200 Subject: [PATCH 2/2] hosts/main: store configuration previously in device-configuration.nix in git --- hosts/main.nix | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/hosts/main.nix b/hosts/main.nix index db6241e..33d97a6 100644 --- a/hosts/main.nix +++ b/hosts/main.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { imports = [ @@ -19,12 +19,32 @@ ../nix-os/xdg-default-apps.nix ../nix-os/services/nix-binary-cache.nix ../nix-os/udev.nix + + (builtins.fetchTarball "https://github.com/nix-community/nixos-vscode-server/tarball/fc900c16efc6a5ed972fb6be87df018bcf3035bc") ]; config = { boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + networking.hostName = "wroclaw-main"; + + services.xrdp.enable = true; + users.groups."tsusers".members = [ "wroclaw" ]; + + services.printing.drivers = with pkgs; [ + hplip + ]; + + # nixos-vscode-server module needs this + programs.nix-ld.enable = true; + services.vscode-server = { + enable = true; + extraRuntimeDependencies = with pkgs; [ + docker + ]; + }; + system.stateVersion = "23.05"; }; -} \ No newline at end of file +}