aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-11-30 22:01:41 +0000
committeraethrvmn <me@aethrvmn.gr>2025-11-30 22:01:41 +0000
commit8e426fdaa3df1840cfa92bf61fe8ccadeac8f3c6 (patch)
treebf688df692b2d862ffb1ffa50fe3e3e56e00aa46 /hosts
parentmoved obs to flatpak + removed home decl (diff)
defined new device
Diffstat (limited to 'hosts')
-rw-r--r--hosts/work/boot.nix6
-rw-r--r--hosts/work/default.nix34
-rw-r--r--hosts/work/hardware-configuration.nix41
-rw-r--r--hosts/work/network.nix15
4 files changed, 96 insertions, 0 deletions
diff --git a/hosts/work/boot.nix b/hosts/work/boot.nix
new file mode 100644
index 0000000..fca6970
--- /dev/null
+++ b/hosts/work/boot.nix
@@ -0,0 +1,6 @@
+{
+ boot.loader = {
+ systemd-boot.enable = true;
+ efi.canTouchEfiVariables = true;
+ };
+}
diff --git a/hosts/work/default.nix b/hosts/work/default.nix
new file mode 100644
index 0000000..29628f9
--- /dev/null
+++ b/hosts/work/default.nix
@@ -0,0 +1,34 @@
+# Edit this configuration file to define what should be installed on
+# your system. Help is available in the configuration.nix(5) man page
+# and in the NixOS manual (accessible by running ‘nixos-help’).
+{ config, lib, pkgs, ... }:
+
+{
+ imports = [
+ # Include the results of the hardware scan.
+ ./hardware-configuration.nix
+
+ # Base modules
+ ../../modules/nvidia
+ ./boot.nix
+ ./network.nix
+ ];
+
+ system = {
+ autoUpgrade = {
+ enable = true;
+ flake = "/home/aethrvmn/.nix#work";
+ };
+
+ # This value determines the NixOS release from which the default
+ # settings for stateful data, like file locations and database versions
+ # on your system were taken. It‘s perfectly fine and recommended to leave
+ # this value at the release version of the first install of this system.
+ # Before changing this value read the documentation for this option
+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
+ stateVersion = "24.11"; # Did you read the comment?
+ };
+
+ # Set time zone.
+ time.timeZone = "Europe/Brussels";
+}
diff --git a/hosts/work/hardware-configuration.nix b/hosts/work/hardware-configuration.nix
new file mode 100644
index 0000000..f71b87a
--- /dev/null
+++ b/hosts/work/hardware-configuration.nix
@@ -0,0 +1,41 @@
+# Do not modify this file! It was generated by ‘nixos-generate-config’
+# and may be overwritten by future invocations. Please make changes
+# to /etc/nixos/configuration.nix instead.
+{ config, lib, pkgs, modulesPath, ... }:
+
+{
+ imports =
+ [ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/aa362925-f9a4-4dff-990a-df4d80e5bc6d";
+ fsType = "ext4";
+ };
+
+ boot.initrd.luks.devices."luks-105e097a-e1c7-4f79-be66-8c769d2532e2".device = "/dev/disk/by-uuid/105e097a-e1c7-4f79-be66-8c769d2532e2";
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/949B-EEDA";
+ fsType = "vfat";
+ options = [ "fmask=0077" "dmask=0077" ];
+ };
+
+ swapDevices = [ ];
+
+ # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
+ # (the default) this is the recommended approach. When using systemd-networkd it's
+ # still possible to use this option, but it's recommended to use it in conjunction
+ # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
+ networking.useDHCP = lib.mkDefault true;
+ # networking.interfaces.enp129s0.useDHCP = lib.mkDefault true;
+ # networking.interfaces.wlp130s0f0.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}
diff --git a/hosts/work/network.nix b/hosts/work/network.nix
new file mode 100644
index 0000000..0556948
--- /dev/null
+++ b/hosts/work/network.nix
@@ -0,0 +1,15 @@
+{
+ networking = {
+ hostName = "work";
+
+ # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
+
+ # Configure network proxy if necessary
+ # networking.proxy.default = "http://user:password@proxy:port/";
+ # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
+
+ networkmanager = {
+ enable = true;
+ };
+ };
+}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.