can't remember

This commit is contained in:
cnst
2024-10-21 21:48:03 +02:00
parent f41f2f11ed
commit 1bff2c067d
14 changed files with 279 additions and 200 deletions

171
flake.lock generated
View File

@@ -82,12 +82,12 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1729092978, "lastModified": 1729510449,
"narHash": "sha256-2SMJFFgKSvrQfkfzdcYjwFGvgeoCtDdbl/CGZNIU7hs=", "narHash": "sha256-/EwjBMYBZ3/2ROT+4M/6tLomgJEgZBpKosWhqtYZkDI=",
"rev": "9af42c96e8d666f1df2b087aba1a6349f1c22f4e", "rev": "4e03e8d762623ca925c604800aa18f109cd3bd97",
"revCount": 1456, "revCount": 1466,
"type": "tarball", "type": "tarball",
"url": "https://api.flakehub.com/f/pinned/chaotic-cx/nyx/0.1.1456%2Brev-9af42c96e8d666f1df2b087aba1a6349f1c22f4e/019295fc-24f9-7d1b-a753-8e461947e187/source.tar.gz?rev=9af42c96e8d666f1df2b087aba1a6349f1c22f4e&revCount=1456" "url": "https://api.flakehub.com/f/pinned/chaotic-cx/nyx/0.1.1466%2Brev-4e03e8d762623ca925c604800aa18f109cd3bd97/0192aeee-014a-76ac-b6c9-3dd9d3641bcf/source.tar.gz?rev=4e03e8d762623ca925c604800aa18f109cd3bd97&revCount=1466"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
@@ -95,18 +95,12 @@
} }
}, },
"crane": { "crane": {
"inputs": {
"nixpkgs": [
"helix-flake",
"nixpkgs"
]
},
"locked": { "locked": {
"lastModified": 1709610799, "lastModified": 1727974419,
"narHash": "sha256-5jfLQx0U9hXbi2skYMGodDJkIgffrjIOgMRjZqms2QE=", "narHash": "sha256-WD0//20h+2/yPGkO88d2nYbb23WMWYvnRyDQ9Dx4UHg=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "81c393c776d5379c030607866afef6406ca1be57", "rev": "37e4f9f0976cb9281cd3f0c70081e5e0ecaee93f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -152,6 +146,27 @@
"type": "github" "type": "github"
} }
}, },
"fenix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1729492502,
"narHash": "sha256-d6L4bBlUWr4sHC+eRXo+4acFPEFXKmqHpM/BfQ5gQQw=",
"owner": "nix-community",
"repo": "fenix",
"rev": "4002a1ec3486b855f341d2b864ba06b61e73af28",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "fenix",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"locked": { "locked": {
"lastModified": 1696426674, "lastModified": 1696426674,
@@ -321,11 +336,11 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1709126324, "lastModified": 1726560853,
"narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "d465f4819400de7c8d874d50b982301f28a84605", "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -380,11 +395,11 @@
}, },
"hardware": { "hardware": {
"locked": { "locked": {
"lastModified": 1728729581, "lastModified": 1729509737,
"narHash": "sha256-oazkQ/z7r43YkDLLQdMg8oIB3CwWNb+2ZrYOxtLEWTQ=", "narHash": "sha256-8OHgqz+tFo21h3hg4/GHizFPws+MMzpEru/+62Z0E8c=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "a8dd1b21995964b115b1e3ec639dd6ce24ab9806", "rev": "cc2d3c0e060f981905d52337340ee6ec8b8eb037",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -401,11 +416,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1729068734, "lastModified": 1729477666,
"narHash": "sha256-JOqmdtcdQohQL1qvTDrVJvd+nkydRm+Lyf3qVF5iQ5E=", "narHash": "sha256-ri40XjKyZIMH5wBCFNa50dq5wTBPF5qH/NVDo+syhNM=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "d1b8129491124ce6068e95ccc58a7fefb1c9db45", "rev": "6d64e6288add793caf1c841ea295518414c04ea0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -446,11 +461,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1729171802, "lastModified": 1729459288,
"narHash": "sha256-Eip3uI+XeyAfBoQXpkm/F7eG3M7AgvzSyhyJdzxVt74=", "narHash": "sha256-gBOVJv+q6Mx8jGvwX7cE6J8+sZmi1uxpRVsO7WxvVuQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9c1a1c7df49a9b28539ccb509b36d0b81e41391c", "rev": "1e27f213d77fc842603628bcf2df6681d7d08f7e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -488,11 +503,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728903686, "lastModified": 1729414726,
"narHash": "sha256-ZHFrGNWDDriZ4m8CA/5kDa250SG1LiiLPApv1p/JF0o=", "narHash": "sha256-Dtmm1OU8Ymiy9hVWn/a2B8DhRYo9Eoyx9veERdOBR4o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "e1aec543f5caf643ca0d94b6a633101942fd065f", "rev": "fe56302339bb28e3471632379d733547caec8103",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -550,11 +565,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1727257269, "lastModified": 1729461877,
"narHash": "sha256-b/j875k6RrxQLtbW+NCLw7NLToMd9KDYywjtUoihpq4=", "narHash": "sha256-ze3eqyh2Z4nYaR67BEs+Oy9r+UsPQjfJzQHdQPjNdYU=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hypridle", "repo": "hypridle",
"rev": "cc23f97836adbba1abc8edd48169fb1f1f698c32", "rev": "0ed59e861cd9927a9a3c32c79dd91143db56a9c7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -577,11 +592,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1729174818, "lastModified": 1729523354,
"narHash": "sha256-Mi2D5p4cJ9FQBTBPLHmYZF+xSGiwf6mwVQ+RspnS+z0=", "narHash": "sha256-iRLBeVWU6rbMruacoMOJ6y+mgTVMWng4T8JYnIPgsSE=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "495b92fb535f51a38e5130e6b89bd1fb01ce8cfb", "rev": "9df0f0b66c66706c9ce8cf9f80e834d5abfc1e96",
"revCount": 5350, "revCount": 5364,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland" "url": "https://github.com/hyprwm/Hyprland"
@@ -600,11 +615,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1725551787, "lastModified": 1729224425,
"narHash": "sha256-6LgsZHz8w3g4c9bRUwRAR+WIMwFGGf3P1VZQcKNRf2o=", "narHash": "sha256-w9dNUedNe2qnhHuhcRf7A1l29+/6DxdMfwN6g4U3c/w=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "contrib", "repo": "contrib",
"rev": "1e531dc49ad36c88b45bf836081a7a2c8927e072", "rev": "d72bc8b1cd30d448bd438e8328f8eeb4c0f2ddb6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -818,11 +833,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728974938, "lastModified": 1729177642,
"narHash": "sha256-pTPEx6WlM+nJVGrRUGx7Di4ljZMwE9HfvlZ6f3NzNfo=", "narHash": "sha256-DdKal+ZhB9QD/tnEwFg4cZ4j4YnrkvSljBxnyG+3eE0=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "23170582b0658e6afd913149a58863af3a57b376", "rev": "bb69165ff372ddbd3228a03513922acd783040e8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -883,11 +898,11 @@
"umu": "umu" "umu": "umu"
}, },
"locked": { "locked": {
"lastModified": 1729108264, "lastModified": 1729525221,
"narHash": "sha256-Jj0/IfDG9VpiByg823MjaDy6LIbUPjEfqsbqhJvI1RA=", "narHash": "sha256-c2K2DKeKDnDaVLOzBPpe2XWuoHyfXWjat2lLbNQbHhQ=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "dd69b3d1751f0ba03711585cd0c03eae8ac93ea2", "rev": "d5baae772ce87682c624233c7a9265b387caa818",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -961,11 +976,11 @@
}, },
"nixpkgs-small": { "nixpkgs-small": {
"locked": { "locked": {
"lastModified": 1729164558, "lastModified": 1729493358,
"narHash": "sha256-dgla/HMyeUIbs0Qtd9DLB4BKFNz+Z8rUO0pbaW5ie2M=", "narHash": "sha256-Ti+Y9nWt5Fcs3JlarxLPgIOVlbqQo7jobz/qOwOaziM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8bddc04f2eecdadeb2a7ab3674bdafc27b933f76", "rev": "a5e6a9e979367ee14f65d9c38119c30272f8455f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1025,11 +1040,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1728888510, "lastModified": 1729256560,
"narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=", "narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", "rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1041,11 +1056,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1709479366, "lastModified": 1728018373,
"narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=", "narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b8697e57f10292a6165a20f03d2f42920dfaf973", "rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1104,11 +1119,11 @@
}, },
"nixpkgs_8": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1728888510, "lastModified": 1729256560,
"narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=", "narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c", "rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1136,11 +1151,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1729180066, "lastModified": 1729525671,
"narHash": "sha256-sUGEUHLx95k/EDnyHCQ/9zJN2eoKShvp3NME1rG5LVQ=", "narHash": "sha256-/pZSi3LBtztMfOJti72FOj3OBJvsCb1N/d9Jl5L04fI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "42479f1604fa30d150be27d33bd71ea0bcc1bb8d", "rev": "305d127d2f03fb412de348455a3175df9e66cd04",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1205,6 +1220,7 @@
"agenix": "agenix", "agenix": "agenix",
"anyrun": "anyrun", "anyrun": "anyrun",
"chaotic": "chaotic", "chaotic": "chaotic",
"fenix": "fenix",
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
@@ -1228,23 +1244,36 @@
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
} }
}, },
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1729454508,
"narHash": "sha256-1W5B/CnLgdC03iIFG0wtawO1+dGDWDpc84PeOHo2ecU=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "9323b5385863739d1c113f02e4cf3f2777c09977",
"type": "github"
},
"original": {
"owner": "rust-lang",
"ref": "nightly",
"repo": "rust-analyzer",
"type": "github"
}
},
"rust-overlay": { "rust-overlay": {
"inputs": { "inputs": {
"flake-utils": [
"helix-flake",
"flake-utils"
],
"nixpkgs": [ "nixpkgs": [
"helix-flake", "helix-flake",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1709604635, "lastModified": 1728268235,
"narHash": "sha256-le4fwmWmjGRYWwkho0Gr7mnnZndOOe4XGbLw68OvF40=", "narHash": "sha256-lJMFnMO4maJuNO6PQ5fZesrTmglze3UFTTBuKGwR1Nw=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "e86c0fb5d3a22a5f30d7f64ecad88643fe26449d", "rev": "25685cc2c7054efc31351c172ae77b21814f2d42",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1393,11 +1422,11 @@
}, },
"locked": { "locked": {
"dir": "packaging/nix", "dir": "packaging/nix",
"lastModified": 1729184579, "lastModified": 1729481341,
"narHash": "sha256-vRpXdpqeiBkEUUvoB5lkhuyHHTSWL9FOcq31ytKfMcQ=", "narHash": "sha256-DS9tbS2TtAp4kUKUW5wUA0TbK7Dx1WOMBkRJLkEC6Cg=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "dacc6c8338c1bd27e2b63c98e6488c2f0ca2ec85", "rev": "0aea3e7fbfdbe172e07983b9b23b601f821495df",
"revCount": 792, "revCount": 810,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/" "url": "https://github.com/Open-Wine-Components/umu-launcher/"

View File

@@ -107,10 +107,10 @@
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
# Rust toolchain # Rust toolchain
# fenix = { fenix = {
# url = "github:nix-community/fenix"; url = "github:nix-community/fenix";
# inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
# }; };
zen-browser = { zen-browser = {
url = "github:cnsta/zen-browser-flake"; url = "github:cnsta/zen-browser-flake";

View File

@@ -23,9 +23,9 @@
# gamescope = { # gamescope = {
# enable = true; # enable = true;
# }; # };
lutris = { # lutris = {
enable = true; # enable = true;
}; # };
gamemode = { gamemode = {
enable = true; enable = true;
optimizeGpu = { optimizeGpu = {

View File

@@ -13,6 +13,8 @@
./home/devtools/vscode ./home/devtools/vscode
./home/gaming/steam ./home/gaming/steam
./home/gaming/mangohud
./home/gaming/lutris
./home/cli/alacritty ./home/cli/alacritty
./home/cli/bash ./home/cli/bash

View File

@@ -35,7 +35,7 @@ in {
normal = "block"; normal = "block";
select = "underline"; select = "underline";
}; };
indent-guides.render = false; indent-guides.render = true;
inline-diagnostics = { inline-diagnostics = {
cursor-line = "hint"; cursor-line = "hint";
other-lines = "error"; other-lines = "error";

View File

@@ -17,7 +17,7 @@ in {
p.wineWowPackages.staging p.wineWowPackages.staging
p.pixman p.pixman
p.libjpeg p.libjpeg
p.gnome.zenity p.zenity
]; ];
}) })
]; ];

View File

@@ -1,91 +1,100 @@
{ {
pkgs, pkgs,
config, config,
lib,
... ...
}: { }: let
home = { inherit (lib) mkIf mkEnableOption;
packages = [pkgs.glib]; # gsettings cfg = config.home.userd.gtk;
pointerCursor = { in {
# package = pkgs.catppuccin-cursors.latteDark; options = {
# name = "catppuccin-latte-dark-cursors"; home.userd.gtk.enable = mkEnableOption "Enables miscellaneous GTK elements";
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
size = 28;
gtk.enable = true;
x11.enable = true;
};
}; };
gtk = { config = mkIf cfg.enable {
enable = true; home = {
theme = { packages = [pkgs.glib]; # gsettings
package = pkgs.orchis-theme; pointerCursor = {
name = "Orchis-Grey-Dark-Compact"; # package = pkgs.catppuccin-cursors.latteDark;
}; # name = "catppuccin-latte-dark-cursors";
iconTheme = { package = pkgs.adwaita-icon-theme;
package = pkgs.adwaita-icon-theme; name = "Adwaita";
name = "Adwaita"; size = 28;
}; gtk.enable = true;
font = { x11.enable = true;
name = "Input Sans Narrow Light"; };
size = 10;
};
cursorTheme = {
# package = pkgs.catppuccin-cursors.latteDark;
# name = "catppuccin-latte-dark-cursors";
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
size = 28;
}; };
gtk = {
enable = true;
theme = {
package = pkgs.orchis-theme;
name = "Orchis-Grey-Dark-Compact";
};
iconTheme = {
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
};
font = {
name = "Input Sans Narrow Light";
size = 10;
};
cursorTheme = {
# package = pkgs.catppuccin-cursors.latteDark;
# name = "catppuccin-latte-dark-cursors";
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
size = 28;
};
gtk2 = { gtk2 = {
configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc"; configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
extraConfig = '' extraConfig = ''
gtk-xft-antialias=1 gtk-xft-antialias=1
gtk-xft-hinting=1 gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight" gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb" gtk-xft-rgba="rgb"
''; '';
}; };
gtk3.extraConfig = { gtk3.extraConfig = {
# Lets be easy on the eyes. This should be easy to make dependent on # Lets be easy on the eyes. This should be easy to make dependent on
# the "variant" of the theme, but I never use a light theme anyway. # the "variant" of the theme, but I never use a light theme anyway.
gtk-application-prefer-dark-theme = true; gtk-application-prefer-dark-theme = true;
# Decorations # Decorations
gtk-decoration-layout = "appmenu:none"; gtk-decoration-layout = "appmenu:none";
gtk-toolbar-style = "GTK_TOOLBAR_BOTH"; gtk-toolbar-style = "GTK_TOOLBAR_BOTH";
gtk-toolbar-icon-size = "GTK_ICON_SIZE_LARGE_TOOLBAR"; gtk-toolbar-icon-size = "GTK_ICON_SIZE_LARGE_TOOLBAR";
gtk-button-images = 1; gtk-button-images = 1;
gtk-menu-images = 1; gtk-menu-images = 1;
# Silence bells and whistles, quite literally. # Silence bells and whistles, quite literally.
gtk-error-bell = 0; gtk-error-bell = 0;
gtk-enable-event-sounds = 0; gtk-enable-event-sounds = 0;
gtk-enable-input-feedback-sounds = 0; gtk-enable-input-feedback-sounds = 0;
# Fonts # Fonts
gtk-xft-antialias = 1; gtk-xft-antialias = 1;
gtk-xft-hinting = 1; gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintslight"; gtk-xft-hintstyle = "hintslight";
}; };
gtk4.extraConfig = { gtk4.extraConfig = {
# Prefer dark theme. # Prefer dark theme.
gtk-application-prefer-dark-theme = true; gtk-application-prefer-dark-theme = true;
# Decorations. # Decorations.
gtk-decoration-layout = "appmenu:none"; gtk-decoration-layout = "appmenu:none";
# Sounds, again. # Sounds, again.
gtk-error-bell = 0; gtk-error-bell = 0;
gtk-enable-event-sounds = 0; gtk-enable-event-sounds = 0;
gtk-enable-input-feedback-sounds = 0; gtk-enable-input-feedback-sounds = 0;
# Fonts, you know the drill. # Fonts, you know the drill.
gtk-xft-antialias = 1; gtk-xft-antialias = 1;
gtk-xft-hinting = 1; gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintslight"; gtk-xft-hintstyle = "hintslight";
};
}; };
}; };
} }

View File

@@ -1,19 +1,32 @@
{pkgs, ...}: { {
systemd.user.services.polkit-gnome-authentication-agent-1 = { pkgs,
Unit.Description = "polkit-gnome-authentication-agent-1"; config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.home.userd.polkit;
in {
options = {
home.userd.polkit.enable = mkEnableOption "Enables polkit";
};
config = mkIf cfg.enable {
systemd.user.services.polkit-gnome-authentication-agent-1 = {
Unit.Description = "polkit-gnome-authentication-agent-1";
Install = { Install = {
WantedBy = ["graphical-session.target"]; WantedBy = ["graphical-session.target"];
Wants = ["graphical-session.target"]; Wants = ["graphical-session.target"];
After = ["graphical-session.target"]; After = ["graphical-session.target"];
}; };
Service = { Service = {
Type = "simple"; Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 1; RestartSec = 1;
TimeoutStopSec = 10; TimeoutStopSec = 10;
};
}; };
}; };
} }

View File

@@ -1,16 +1,28 @@
{config, ...}: { {
xdg = { config,
userDirs = { lib,
enable = true; ...
createDirectories = true; }: let
desktop = "${config.home.homeDirectory}/desktop"; inherit (lib) mkIf mkEnableOption;
documents = "${config.home.homeDirectory}/documents"; cfg = config.home.userd.xdg;
download = "${config.home.homeDirectory}/downloads"; in {
music = "${config.home.homeDirectory}/media/music"; options = {
pictures = "${config.home.homeDirectory}/media/images"; home.userd.xdg.enable = mkEnableOption "Enables XDG settings";
publicShare = "${config.home.homeDirectory}/documents/share"; };
templates = "${config.home.homeDirectory}/documents/templates"; config = mkIf cfg.enable {
videos = "${config.home.homeDirectory}/media/videos"; xdg = {
userDirs = {
enable = true;
createDirectories = true;
desktop = "${config.home.homeDirectory}/desktop";
documents = "${config.home.homeDirectory}/documents";
download = "${config.home.homeDirectory}/downloads";
music = "${config.home.homeDirectory}/media/music";
pictures = "${config.home.homeDirectory}/media/images";
publicShare = "${config.home.homeDirectory}/documents/share";
templates = "${config.home.homeDirectory}/documents/templates";
videos = "${config.home.homeDirectory}/media/videos";
};
}; };
}; };
} }

View File

@@ -16,15 +16,15 @@ in {
enable = true; enable = true;
enable32Bit = true; enable32Bit = true;
# extraPackages = with pkgs; [ # extraPackages = with pkgs; [
# libva # libva
# vaapiVdpau # vaapiVdpau
# libvdpau-va-gl # libvdpau-va-gl
# amdvlk # amdvlk
# vulkan-tools # vulkan-tools
# ]; # ];
# extraPackages32 = with pkgs.pkgsi686Linux; [ # extraPackages32 = with pkgs.pkgsi686Linux; [
# vaapiVdpau # vaapiVdpau
# libvdpau-va-gl # libvdpau-va-gl
# ]; # ];
}; };
}; };

View File

@@ -30,6 +30,7 @@ in {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
libva libva
libvdpau-va-gl
vaapiVdpau vaapiVdpau
libdrm_git libdrm_git
latencyflex-vulkan latencyflex-vulkan
@@ -48,10 +49,12 @@ in {
vulkanPackages_latest.vulkan-validation-layers vulkanPackages_latest.vulkan-validation-layers
vulkanPackages_latest.vulkan-volk vulkanPackages_latest.vulkan-volk
]; ];
extraPackages32 = with pkgs; [ extraPackages32 = with pkgs.pkgsi686Linux; [
mesa32_git pkgs.mesa32_git
pkgs.mesa32_git.opencl
libdrm32_git libdrm32_git
libva libva
libvdpau-va-gl
vaapiVdpau vaapiVdpau
]; ];
}; };

View File

@@ -27,7 +27,6 @@ in {
(mkIf cfg.desktop.enable [ (mkIf cfg.desktop.enable [
pkgs.protonup pkgs.protonup
pkgs.winetricks pkgs.winetricks
pkgs.tor-browser
]) ])
]; ];
}; };

View File

@@ -6,13 +6,13 @@
default = pkgs.mkShell { default = pkgs.mkShell {
# Add Rust toolchain from Fenix and rust-analyzer-nightly # Add Rust toolchain from Fenix and rust-analyzer-nightly
packages = [ packages = [
# (inputs.fenix.packages.${pkgs.stdenv.hostPlatform.system}.complete.withComponents [ (inputs.fenix.packages.${pkgs.stdenv.hostPlatform.system}.complete.withComponents [
# "cargo" "cargo"
# "clippy" "clippy"
# "rust-src" "rust-src"
# "rustc" "rustc"
# "rustfmt" "rustfmt"
# ]) ])
]; ];
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [

View File

@@ -41,9 +41,12 @@
steam = { steam = {
enable = true; enable = true;
}; };
# mangohud = { mangohud = {
# enable = false; enable = true;
# }; };
lutris = {
enable = true;
};
}; };
cli = { cli = {
alacritty = { alacritty = {
@@ -81,15 +84,24 @@
gpg = { gpg = {
enable = false; enable = false;
}; };
gtk = {
enable = true;
};
mako = { mako = {
enable = true; enable = true;
}; };
udiskie = { udiskie = {
enable = true; enable = true;
}; };
polkit = {
enable = true;
};
syncthing = { syncthing = {
enable = true; enable = true;
}; };
xdg = {
enable = true;
};
}; };
utils = { utils = {
anyrun = { anyrun = {