aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/wopr/default.nix
diff options
context:
space:
mode:
authorsadbeast <sadbeast@sadbeast.com>2024-05-30 00:47:47 +0000
committersadbeast <sadbeast@sadbeast.com>2024-10-05 16:44:14 -0700
commit09513b5c4e4babfaefdd06c592ef34c0908dc572 (patch)
tree5a9af6ef0407346c223334e295adc8012654f112 /hosts/wopr/default.nix
downloadnix-config-main.tar.gz
nix-config-main.tar.bz2
oh god what have i doneHEADmain
Diffstat (limited to 'hosts/wopr/default.nix')
-rw-r--r--hosts/wopr/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/hosts/wopr/default.nix b/hosts/wopr/default.nix
new file mode 100644
index 0000000..bfd9de1
--- /dev/null
+++ b/hosts/wopr/default.nix
@@ -0,0 +1,23 @@
+{
+ imports = [
+ # Import your generated (nixos-generate-config) hardware configuration
+ ./hardware-configuration.nix
+
+ ../common/global
+ ];
+
+ # Use the GRUB 2 boot loader.
+ boot.loader.grub.enable = true;
+ boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
+
+ networking.hostName = "wopr";
+
+ services = {
+ logind.extraConfig = ''
+ HandleLidSwitchExternalPower=ignore
+ '';
+ };
+
+ # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
+ system.stateVersion = "24.05";
+}