diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-02-12 08:19:04 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-02-12 08:19:04 +0100 |
commit | 07f84bb581e369ff79100f0417e9d277f3c1fb61 (patch) | |
tree | 64ec899f185a3d794791df191f53939dbc67be41 /configuration/tarrel | |
parent | 8fe481c0858702231335ad6c5eb850b293781b61 (diff) |
alot of stuff
Diffstat (limited to 'configuration/tarrel')
-rw-r--r-- | configuration/tarrel/default.nix | 51 | ||||
-rw-r--r-- | configuration/tarrel/hardware-configuration.nix | 40 | ||||
-rw-r--r-- | configuration/tarrel/home-manager.nix | 42 |
3 files changed, 0 insertions, 133 deletions
diff --git a/configuration/tarrel/default.nix b/configuration/tarrel/default.nix deleted file mode 100644 index 9741d28..0000000 --- a/configuration/tarrel/default.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ config, ... }: -{ - imports = [ - ./hardware-configuration.nix - ./home-manager.nix - - ../core - ../hyprland.nix - ]; - - system.stateVersion = "24.05"; - - networking.hostName = "tarrel"; - networking.networkmanager.enable = true; - - time.timeZone = "Europe/Amsterdam"; - - users.users.jras.extraGroups = [ "networkmanager" ]; - - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - hardware.graphics.enable = true; - services.xserver.videoDrivers = ["nvidia"]; - hardware.nvidia = { - modesetting.enable = true; - nvidiaSettings = true; - nvidiaPersistenced = true; - open = true; - - package = config.boot.kernelPackages.nvidiaPackages.stable; - }; - - security.rtkit.enable = true; - - environment.sessionVariables = { - TERMINAL = "alacritty"; - EDITOR = "helix"; - }; - - environment.pathsToLink = [ "/libexec" ]; - - services.sunshine = { - enable = true; - autoStart = true; - capSysAdmin = true; - openFirewall = true; - }; - - programs.steam.enable = true; -} diff --git a/configuration/tarrel/hardware-configuration.nix b/configuration/tarrel/hardware-configuration.nix deleted file mode 100644 index 4604fcd..0000000 --- a/configuration/tarrel/hardware-configuration.nix +++ /dev/null @@ -1,40 +0,0 @@ -# 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" "ahci" "nvme" "usbhid" "uas" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/b73c41ec-fe01-4fa5-b50a-fd871e8c2710"; - fsType = "ext4"; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/BBB8-1AF8"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; - - 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.enp4s0.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp0s20f0u9.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/configuration/tarrel/home-manager.nix b/configuration/tarrel/home-manager.nix deleted file mode 100644 index 9709129..0000000 --- a/configuration/tarrel/home-manager.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ pkgs, inputs, ... }: -{ - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.extraSpecialArgs = { inherit inputs; }; - home-manager.users.jras = { - imports = [ - ../home-manager/core - ../home-manager/hyprland.nix - ]; - - home.username = "jras"; - home.homeDirectory = "/home/jras"; - home.stateVersion = "23.11"; - - programs.git = { - userName = "Jasper Ras"; - userEmail = "jaspert.ras@gmail.com"; - }; - - home.file = { - gamestream-start = { - text = '' - #!${pkgs.zsh}/bin/zsh - ${pkgs.hyprland}/bin/hyprctl keyword monitor HDMI-A-1,1920x1080@59.94,auto,2 - ''; - target = "bin/gamestream-start"; - executable = true; - }; - gamestream-end = { - text = '' - #!${pkgs.zsh}/bin/zsh - ${pkgs.hyprland}/bin/hyprctl keyword monitor HDMI-A-1,preferred,auto,1 - ''; - target = "bin/gamestream-end"; - executable = true; - }; - }; - - programs.zsh.envExtra = "export PATH=$HOME/bin:$PATH"; - }; -} |