From 4c51bf80ccdf25920756b414b0269f059655977e Mon Sep 17 00:00:00 2001 From: illustris Date: Tue, 28 May 2024 08:17:02 +0530 Subject: [PATCH] changes --- configuration.nix | 36 +++++++++++++++++++++++++++++++----- desktop-configuration.nix | 14 +++++++++++--- flake.lock | 24 ++++++++++++------------ 3 files changed, 54 insertions(+), 20 deletions(-) diff --git a/configuration.nix b/configuration.nix index 5c4b3e4..ac510c3 100644 --- a/configuration.nix +++ b/configuration.nix @@ -80,7 +80,29 @@ # TODO: make a mergable option nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ - "cudatoolkit" + "cuda-merged" + "libnpp" + "libcusparse" + "libcusolver" + "libcurand" + "libcufft" + "libcublas" + "libnvjitlink" + "cuda_sanitizer_api" + "cuda_profiler_api" + "cuda_nvtx" + "cuda_nvrtc" + "cuda_nvml_dev" + "cuda_cuobjdump" + "cuda_gdb" + "cuda_nvcc" + "cuda_nvdisasm" + "cuda_nvprune" + "cuda_cccl" + "cuda_cudart" + "cuda_cupti" + "cuda_cuxxfilt" + "displaylink" "nvidia-persistenced" "nvidia-settings" "nvidia-x11" "steam" "steam-original" "steam-run" "zerotierone" @@ -114,21 +136,25 @@ gnupg.agent = { enable = true; - pinentryFlavor = "curses"; + pinentryPackage = pkgs.pinentry-qt; enableSSHSupport = true; }; + kdeconnect.enable = true; + mosh.enable = true; mtr.enable = true; nix-ld.enable = true; }; + security.sudo.wheelNeedsPassword = false; security.pam.services = { login.u2fAuth = true; sudo.u2fAuth = true; }; services = { + avahi.publish.userServices = true; flatpak.enable = true; fprintd.enable = true; fwupd.enable = true; @@ -175,14 +201,14 @@ }; zfs.autoScrub.enable = true; }; - # systemd = { + systemd = { # # Disable autostart # services.grafana = { # wantedBy = lib.mkForce []; # serviceConfig.SupplementaryGroups = [ config.users.groups.keys.name ]; # }; - # services.docker.wantedBy = lib.mkForce []; - # }; + services.docker.wantedBy = lib.mkForce []; + }; time.timeZone = "Asia/Kolkata"; diff --git a/desktop-configuration.nix b/desktop-configuration.nix index df1d8a2..4e099f6 100644 --- a/desktop-configuration.nix +++ b/desktop-configuration.nix @@ -57,7 +57,10 @@ # }; }; - networking.firewall.allowedTCPPorts = [ 4713 8888 ]; + networking.firewall = { + enable = false; + allowedTCPPorts = [ 4713 8888 ]; + }; programs = { hyprland = { @@ -65,12 +68,16 @@ xwayland.enable = true; }; waybar.enable = true; - steam.enable = true; + steam = { + enable = true; + gamescopeSession.enable = true; + }; }; security.rtkit.enable = true; services = { + displayManager.sddm.enable = lib.mkForce false; # blueman.enable = true; picom = { backend = "glx"; @@ -84,9 +91,10 @@ # desktopManager.plasma5.enable = true; dpi = 100; # enable = true; - videoDrivers = [ "nvidia" ]; + videoDrivers = [ "displaylink" "nvidia" ]; wacom.enable = true; windowManager.dwm.enable = true; + displayManager.lightdm.enable = true; }; pipewire = { alsa = { diff --git a/flake.lock b/flake.lock index ff95d53..19a5c97 100644 --- a/flake.lock +++ b/flake.lock @@ -9,11 +9,11 @@ }, "locked": { "dir": "pkgs/firefox-addons", - "lastModified": 1707602717, - "narHash": "sha256-mLEziZaYS1G9Q2l7L1/HU+PyScfBGwgh1R4Mov7x5iY=", + "lastModified": 1714338754, + "narHash": "sha256-tAc80Zc8TwE222DEBxKcYAZPxxsrUHU4zwnuErUOnyk=", "owner": "rycee", "repo": "nur-expressions", - "rev": "8e23ca5dcbcd202ceb790598b38a68d7d292ef38", + "rev": "e8514896746fc667f2cf326c9c0c4c1e823d5e9f", "type": "gitlab" }, "original": { @@ -45,11 +45,11 @@ ] }, "locked": { - "lastModified": 1707607386, - "narHash": "sha256-hj/RgQMTvCWQVInkZwiMMieumkfOjHXhtWhfuXHop/8=", + "lastModified": 1714377222, + "narHash": "sha256-UsDsjWCKlWn8vbXi8Zza9Hkq3xyk8fpvFNo2VM5S74E=", "owner": "nix-community", "repo": "home-manager", - "rev": "bfd0ae29a86eff4603098683b516c67e22184511", + "rev": "2af7c78b7bb9cf18406a193eba13ef9f99388f49", "type": "github" }, "original": { @@ -71,11 +71,11 @@ ] }, "locked": { - "lastModified": 1708057518, - "narHash": "sha256-sU5ZNGx0FNq5UclMM9Jaep80/T3XvX9+jgEZqirPzV4=", + "lastModified": 1713117952, + "narHash": "sha256-UxPrGzXNXMecKAKjJt4aVkRm9i9expw1mTn1HiC4f1k=", "owner": "illustris", "repo": "flake", - "rev": "ed236d06667e35d379db14f2c2dc09afa8d77e6a", + "rev": "a0b612f0d5aec0881b0c342b3d399d861d6fecc7", "type": "github" }, "original": { @@ -106,11 +106,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1707546158, - "narHash": "sha256-nYYJTpzfPMDxI8mzhQsYjIUX+grorqjKEU9Np6Xwy/0=", + "lastModified": 1714253743, + "narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d934204a0f8d9198e1e4515dd6fec76a139c87f0", + "rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994", "type": "github" }, "original": {