From 0f7cde36403e5108793ff0a5e1c88d931f0c57b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 20 Jul 2022 00:14:01 -0300 Subject: [PATCH] enable steam and mangohud --- log | 15 --------------- system/configuration.nix | 1 + system/monolith-hardware-configuration.nix | 14 +------------- user/home.nix | 1 + 4 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 log diff --git a/log b/log deleted file mode 100644 index 17bc7e1..0000000 --- a/log +++ /dev/null @@ -1,15 +0,0 @@ -$ nix --extra-experimental-features nix-command flakes build --out-link /tmp/nixos-rebuild.rAHLyE/nixos-rebuild .#nixosConfigurations."monolith".config.system.build.nixos-rebuild --verbose -warning: Git tree '/home/lelgenio/projects/nixos-config' is dirty -evaluating file '/nix/store/vqny2ayx5bjs9w29n0kimmxq2rax061b-source/flake.nix' -$ exec /nix/store/n05m4wrq8hiwlv1n87q5zfvv4ginp299-nixos-rebuild/bin/nixos-rebuild switch --verbose --flake .# -building the system configuration... -Building in flake mode. -$ nix --extra-experimental-features nix-command flakes build .#nixosConfigurations."monolith".config.system.build.toplevel --verbose --out-link /tmp/nixos-rebuild.3us5Ex/result -warning: Git tree '/home/lelgenio/projects/nixos-config' is dirty -evaluating file '/nix/store/vqny2ayx5bjs9w29n0kimmxq2rax061b-source/flake.nix' -$ sudo --preserve-env=NIXOS_INSTALL_BOOTLOADER -- nix-env -p /nix/var/nix/profiles/system --set /nix/store/zghfi9sjbzjczd21ksnfxys76cqggirq-nixos-system-monolith-22.05.20220714.c06d5fa -$ sudo --preserve-env=NIXOS_INSTALL_BOOTLOADER -- /nix/store/zghfi9sjbzjczd21ksnfxys76cqggirq-nixos-system-monolith-22.05.20220714.c06d5fa/bin/switch-to-configuration switch -leaving systemd-boot 250.4 in place (250.4 is not newer) -stopping the following units: -.mount, boot-efi.mount, home.mount -Failed to stop -.mount: Job type stop is not applicable for unit -.mount. -Terminated diff --git a/system/configuration.nix b/system/configuration.nix index 415c04f..17057b4 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -177,6 +177,7 @@ in enable = true; wrapperFeatures.gtk = true; }; + programs.steam.enable = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; diff --git a/system/monolith-hardware-configuration.nix b/system/monolith-hardware-configuration.nix index 7160b75..6dc384e 100644 --- a/system/monolith-hardware-configuration.nix +++ b/system/monolith-hardware-configuration.nix @@ -2,65 +2,53 @@ # 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 = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { device = "/dev/disk/by-label/BTRFS_ROOT"; fsType = "btrfs"; options = [ "subvol=nixos" ]; }; - boot.initrd.luks.reusePassphrases = true; boot.initrd.luks.devices = { "main".device = "/dev/disk/by-label/CRYPT_ROOT"; "data".device = "/dev/disk/by-label/CRYPT_DATA"; }; - fileSystems."/boot/efi" = { device = "/dev/disk/by-label/NIXBOOT"; fsType = "vfat"; }; - fileSystems."/home" = { device = "/dev/disk/by-label/BTRFS_ROOT"; fsType = "btrfs"; options = [ "subvol=home" ]; }; - fileSystems."/home/lelgenio/Games" = { device = "/dev/disk/by-label/BTRFS_DATA"; fsType = "btrfs"; options = [ "subvol=@games" "nofail" ]; }; - fileSystems."/home/lelgenio/Downloads/Torrents" = { device = "/dev/disk/by-label/BTRFS_DATA"; fsType = "btrfs"; options = [ "subvol=@torrents" "nofail" ]; }; - swapDevices = [ ]; - services.udev.extraRules = '' ACTION=="add", SUBSYSTEM=="pci", DRIVER=="pcieport", ATTR{power/wakeup}="disabled" ''; - # 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..useDHCP`. networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; networking.hostName = "monolith"; # Define your hostname. -} +} \ No newline at end of file diff --git a/user/home.nix b/user/home.nix index 599774a..5b60349 100644 --- a/user/home.nix +++ b/user/home.nix @@ -564,4 +564,5 @@ in { style.package = pkgs.libsForQt5.qtstyleplugins; style.name = "gtk2"; }; + programs.mangohud.enable = true; } \ No newline at end of file