summary refs log tree commit diff
path: root/host/Rory-desktop
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-20 13:10:30 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-20 13:19:25 +0200
commit2047d59bb24262966adaec04669c4604453f9d79 (patch)
treeccebf7271572789b170dd1dabe6c4d0c414a96cf /host/Rory-desktop
parentChanges (diff)
downloadRory-Open-Architecture-2047d59bb24262966adaec04669c4604453f9d79.tar.xz
Add changes in preparation of setting up desktop
Diffstat (limited to 'host/Rory-desktop')
-rw-r--r--host/Rory-desktop/configuration.nix174
1 files changed, 174 insertions, 0 deletions
diff --git a/host/Rory-desktop/configuration.nix b/host/Rory-desktop/configuration.nix
new file mode 100644
index 0000000..ae30435
--- /dev/null
+++ b/host/Rory-desktop/configuration.nix
@@ -0,0 +1,174 @@
+{ config, pkgs, lib, ... }:
+
+{
+  imports =
+    [
+      ../../modules/base-client.nix
+      ../../modules/packages/vim.nix
+      ../../modules/environments/home.nix
+    ];
+
+    boot = {
+      kernelPackages = pkgs.linuxPackages_latest;
+      loader = {
+        grub = {
+          enable = true;
+          device = "nodev"; # nodev for EFI only
+          # EFI
+          efiSupport = true;
+          efiInstallAsRemovable = true;
+        };
+    };
+    #readOnlyNixStore = false;
+  };
+
+  networking = {
+    hostName = "Rory-desktop";
+    networkmanager.enable = true;
+    wireless.enable = false;
+    firewall = {
+      enable = false;
+      # allowedTCPPorts = [ ... ];
+      # allowedUDPPorts = [ ... ];
+    };
+
+    interfaces.enp34s0.ipv4.addresses = [ { 
+      address = "192.168.0.3";
+      prefixLength = 24;
+    } ];
+
+    useDHCP = true;
+  };
+
+  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;
+      sushi.enable = false;
+      rygel.enable = false;
+      gnome-user-share.enable = false;
+      gnome-remote-desktop.enable = false;
+      gnome-online-miners.enable = lib.mkForce false;
+      gnome-online-accounts.enable = false;
+      gnome-initial-setup.enable = false;
+      gnome-browser-connector.enable = false;
+      games.enable = false;
+      evolution-data-server.enable = lib.mkForce false;
+      at-spi2-core.enable = lib.mkForce false;
+    };
+    printing.enable = false;
+    openssh = {
+      enable = true;
+      extraConfig = ''
+        MaxAuthTries 32
+        '';
+    };	
+    pipewire = {
+      enable = true;
+      audio.enable = true;
+      pulse.enable = true;
+      wireplumber.enable = true;
+      jack.enable = true;
+      alsa.enable = true;
+    };
+  };
+
+
+  sound.enable = true;
+  hardware.pulseaudio.enable = false;
+
+  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
+    git
+    lsd
+    duf
+    htop
+    btop
+    udisks
+    gparted
+    kitty.terminfo
+    glxinfo
+    jq
+    yq
+    pv
+    dig
+    cloud-utils
+    sshfs
+    cinnamon.nemo
+    firefox-bin
+
+    #epiphany
+    gnome-console
+    feh
+    # Various extensions...
+    # - Gnome
+    #gnomeExtensions.vitals
+    #gnomeExtensions.runcat
+    #  - Dont work on gnome 43:
+    #gnomeExtensions.undecorate
+    #gnomeExtensions.inactivity
+    #gnomeExtensions.left-clock
+    # - Vim
+    vimPlugins.vim-nix
+    # - zsh
+    zsh
+    zsh-powerlevel10k
+    zsh-nix-shell
+    zsh-you-should-use
+    zsh-syntax-highlighting
+    zsh-completions
+    
+  ];
+  fonts.fonts = with pkgs; [
+    (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
+  ];
+  nix = {
+    settings = {
+      experimental-features = [ "nix-command" "flakes" ];
+      auto-optimise-store = true;
+    };
+  };
+  nixpkgs = {
+    config.allowUnfree = true;
+  };
+  security = {
+    polkit.enable = true;
+    sudo.wheelNeedsPassword = false;
+  };
+
+
+  
+  system.stateVersion = "22.11"; # DO NOT EDIT!
+}
+