summary refs log tree commit diff
path: root/host/RoryNix/configuration.nix
diff options
context:
space:
mode:
authorEmma@Rory <root@rory.gay>2023-08-23 00:48:28 +0200
committerEmma@Rory <root@rory.gay>2023-08-23 00:48:28 +0200
commit29c9eeeb228dbe62160d176d9dc72521ec225332 (patch)
treeeab008e7b2a7beedded88dcd8eecb8722284c045 /host/RoryNix/configuration.nix
parentConduit well-known (diff)
downloadRory-Open-Architecture-29c9eeeb228dbe62160d176d9dc72521ec225332.tar.xz
Add side laptop
Diffstat (limited to 'host/RoryNix/configuration.nix')
-rw-r--r--host/RoryNix/configuration.nix172
1 files changed, 172 insertions, 0 deletions
diff --git a/host/RoryNix/configuration.nix b/host/RoryNix/configuration.nix
new file mode 100644
index 0000000..4db2d44
--- /dev/null
+++ b/host/RoryNix/configuration.nix
@@ -0,0 +1,172 @@
+{ config, pkgs, ... }:
+
+{
+  imports =
+    [
+#       ./hardware-configuration.nix
+       ../../modules/packages/vim.nix
+    ];
+
+    boot = {
+        kernelPackages = pkgs.linuxPackages_latest;
+	loader = {
+		grub = {
+			enable = true;
+			version = 2;
+			device = "/dev/sda"; # nodev for EFI only
+			
+			# EFI
+			efiSupport = false;
+			efiInstallAsRemovable = false;
+		};
+	};
+        #readOnlyNixStore = false;
+  };
+
+  networking = {
+	hostName = "RoryNix";
+	networkmanager.enable = true;
+	wireless.enable = false;
+  	
+	firewall = {
+		enable = false;
+		# allowedTCPPorts = [ ... ];
+		# allowedUDPPorts = [ ... ];
+	};
+  };
+
+  time.timeZone = "Europe/Brussels";
+  i18n.defaultLocale = "en_US.UTF-8";
+
+  services = {
+ 	xserver = {
+		enable = true;
+  		videoDrivers = [ "intel" ];
+  		desktopManager.gnome.enable = true;
+		libinput.enable = true;
+		layout = "us";
+		modules = [ pkgs.xorg.xf86videointel ];
+	};
+	gnome = {
+		
+    		core-developer-tools.enable = false;
+		core-utilities.enable = false;
+		tracker-miners.enable = false;
+		tracker.enable = false;
+	};
+
+	printing.enable = false;
+	openssh = {
+          enable = true;
+          extraConfig = ''
+            MaxAuthTries 32
+            '';
+          #X11Forwarding = true;
+	};	
+  };
+  security.sudo.wheelNeedsPassword = false;
+  nixpkgs.config.allowUnfree = true;
+
+  nix.settings.experimental-features = [ "nix-command" "flakes" ];
+
+  sound.enable = true;
+  hardware.pulseaudio.enable = true;
+
+  users.users = {
+    Rory = {
+      isNormalUser = true;
+      extraGroups = [ "wheel" ];
+      packages = with pkgs; [
+        #gimp-with-plugins
+
+        #xterm
+        gnomeExtensions.vitals
+        gnomeExtensions.runcat
+      ];
+      initialPassword = "password";
+    };
+  };
+
+  environment.systemPackages = with pkgs; [
+    wget
+    neofetch
+    lnav
+    pciutils
+    zsh
+    gnome-console
+    feh
+    git
+    #lsd
+    steam
+    #nerdfonts
+    #element-web
+    sshfs
+    cinnamon.nemo
+    firefox-bin
+    #chromiumDev
+    htop
+    udisks
+    gparted
+    kitty.terminfo
+    glxinfo
+    #epiphany
+    # Various extensions...
+    # - Gnome
+    #gnomeExtensions.vitals
+    #gnomeExtensions.runcat
+    #  - Dont work on gnome 43:
+    #gnomeExtensions.undecorate
+    #gnomeExtensions.inactivity
+    #gnomeExtensions.left-clock
+    # - Vim
+    vimPlugins.vim-nix
+  ];
+  fonts.fonts = with pkgs; [
+    (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
+  ];
+  nixpkgs.overlays = [
+    (self: super: {
+        python3 = super.python3.override {
+          packageOverrides = python-self: python-super: {
+            markdown-it-py = python-super.markdown-it-py.overrideAttrs (oldAttrs: {
+              doInstallCheck = false;
+            });
+          };
+        };
+        haskellPackages = super.haskellPackages.override {
+          overrides = haskellPackages-self: haskellPackages-super: {
+            basement = haskellPackages-super.basement.overrideAttrs (oldAttrs: {
+              patches = [
+                ./patches/haskell/basement/IntWord64.patch
+              ];
+            });
+          };
+        };
+      }
+    )
+  ];
+  security.polkit.enable = true;
+
+  nix = {
+    distributedBuilds = true;
+
+    buildMachines = [
+      #"self" = {
+      #  
+      #};
+      {
+        systems = [ "x86_64-linux" "i686-linux" ];
+        hostName = "192.168.0.3";
+        sshUser = "Rory";
+        sshKey = "/home/Rory/.ssh/id_ed25519";
+        maxJobs = 12;
+      }
+    ];
+    registry.nixpkgs.flake = pkgs;
+    nixPath = "nixpkgs=flake:nixpkgs";
+  };
+  
+  system.stateVersion = "22.11"; # DO NOT EDIT!
+
+}
+