aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/default.nix6
-rw-r--r--hosts/watermelon/configuration.nix (renamed from hosts/nixpad/configuration.nix)34
-rw-r--r--hosts/watermelon/hardware-configuration.nix (renamed from hosts/nixpad/hardware-configuration.nix)0
3 files changed, 35 insertions, 5 deletions
diff --git a/hosts/default.nix b/hosts/default.nix
index 5abd965..8cf2a0a 100644
--- a/hosts/default.nix
+++ b/hosts/default.nix
@@ -3,7 +3,7 @@
inherit (self) inputs;
# get necessary inputs from self.inputs
inherit (inputs) nixpkgs lanzaboote nixos-hardware;
- inherit (inputs.home-manager.nixosModules) home-manager;
+ inherit (inputs.home-manager.nixosModules) home-manager;
# get lib from nixpkgs and create and alias for lib.nixosSystem
# for potential future overrides & abstractions
inherit (nixpkgs) lib;
@@ -20,11 +20,11 @@
commonArgs = {inherit self inputs;};
in {
- "nixpad" = mkSystem {
+ "watermelon" = mkSystem {
specialArgs = commonArgs;
modules = [
# this list defines which files will be imported to be used as "modules" in the system config
- ./nixpad/configuration.nix
+ ./watermelon/configuration.nix
# use the nixos-module for home-manager
home-manager
home
diff --git a/hosts/nixpad/configuration.nix b/hosts/watermelon/configuration.nix
index 092ffde..10eddce 100644
--- a/hosts/nixpad/configuration.nix
+++ b/hosts/watermelon/configuration.nix
@@ -14,11 +14,12 @@
services.xserver = {
enable = true;
- displayManager.sddm.enable = true;
xkb.layout = "us";
libinput.enable = true;
};
+ services.tailscale.enable = true;
+
hardware.opengl = {
enable = true;
driSupport = true;
@@ -90,8 +91,14 @@
wofi
swaylock
gnome.gnome-keyring
+ gtklock
+ fprintd
+ tailscale
];
+ services.fprintd = {
+ enable = true;
+ };
services.printing.enable = true;
fonts.packages = with pkgs; [
@@ -101,7 +108,7 @@
winePackages.fonts
];
- networking.hostName = "nixpad";
+ networking.hostName = "watermelon";
networking.networkmanager.enable = true;
boot.loader.systemd-boot.enable = true;
@@ -149,6 +156,29 @@
services.openssh.enable = true;
+ services.greetd = {
+ enable = true;
+ restart = true;
+ settings = {
+ default_session = {
+ command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
+ user = "greeter";
+ };
+ };
+ };
+
+ systemd.services.greetd.serviceConfig = {
+ Type = "idle";
+ StandardInput = "tty";
+ StandardOutput = "tty";
+ StandardError = "journal";
+ TTYReset = "true";
+ TTYHangup = "true";
+ TTYVTDisallocate = true;
+ };
+
+ security.pam.services.gtklock.text = lib.readFile "${pkgs.gtklock}/etc/pam.d/gtklock";
+
networking.firewall.enable = false;
system.stateVersion = "24.05";
diff --git a/hosts/nixpad/hardware-configuration.nix b/hosts/watermelon/hardware-configuration.nix
index bf0bc0a..bf0bc0a 100644
--- a/hosts/nixpad/hardware-configuration.nix
+++ b/hosts/watermelon/hardware-configuration.nix