chore!(homix): update nixpkgs

Also rename `lib` to `util` to avoid confusion
This commit is contained in:
reo101 2023-04-15 18:09:55 +03:00
parent fd854dcf7c
commit cc58835189
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
4 changed files with 85 additions and 68 deletions

View file

@ -25,11 +25,11 @@
"base16-schemes": { "base16-schemes": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1665690101, "lastModified": 1680729003,
"narHash": "sha256-J2ZvNaVFkqaTXzYO5L+jyRORfIOavFPKvWItP6UTMKs=", "narHash": "sha256-M9LHTL24/W4oqgbYRkz0B2qpNrkefTs98pfj3MxIXnU=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "base16-schemes", "repo": "base16-schemes",
"rev": "a3dc916cf90471a422c0bfe1bb4b1bdd12185ced", "rev": "dc048afa066287a719ddbab62b3e19e4b5110cf0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -129,12 +129,15 @@
} }
}, },
"flake-utils_3": { "flake-utils_3": {
"inputs": {
"systems": "systems"
},
"locked": { "locked": {
"lastModified": 1676283394, "lastModified": 1681202837,
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=", "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073", "rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -197,11 +200,11 @@
}, },
"hardware": { "hardware": {
"locked": { "locked": {
"lastModified": 1678095239, "lastModified": 1680876084,
"narHash": "sha256-4F6jovFJcwh6OkMsY94ZrHdrvVqZi1FX5pYv6V9LIQw=", "narHash": "sha256-eP9yxP0wc7XuVaODugh+ajgbFGaile2O1ihxiLxOuvU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "f6610997b0fc5ea5f9e142c348fca27497efe1c7", "rev": "3006d2860a6ed5e01b0c3e7ffb730e9b293116e2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -214,20 +217,19 @@
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ]
"utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1677757546, "lastModified": 1681468923,
"narHash": "sha256-tA1ukoluctzLVyWRaKtD4KlTwgXbUsGB5vcyni1OJ9I=", "narHash": "sha256-+X2oO4juRVhQRs002mn8km6PODccIRiz09c2K1xtSpY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "86bb69b0b1e10d99a30c4352f230f03106dd0f8a", "rev": "17198cf5ae27af5b647c7dac58d935a7d0dbd189",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-22.11", "ref": "master",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -254,11 +256,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1678060331, "lastModified": 1681541834,
"narHash": "sha256-JnKiZsG4MlNDNaSy9WvRJF2a6gaeiqtw0BmYNQ4DquQ=", "narHash": "sha256-LRAfvzWVTAbOKasVIVh4RJl8nhOq3uZ1DQGJleGsp6A=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "e389b189021cb6b72cfd7583ce6fb5d8d3346d45", "rev": "0a61cb60a633f05e3f05f8d5dae241910a92ee1f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -277,11 +279,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1678090567, "lastModified": 1681546346,
"narHash": "sha256-ZSKhaesPn2WHnqfshj6TDHO5ob1o+wgUjiP4oZ11eLc=", "narHash": "sha256-tANWXcsWGi78lWWtKvebIDSUpfzhNC4pyeHU/sj5a6g=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "13bcb7770ffa76e5e35a9dc1c12b146c22f10bdf", "rev": "b0e4272a92496088bf58546ad05350174bb7fff2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -296,11 +298,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1672236234, "lastModified": 1680875144,
"narHash": "sha256-dpBIuxcDEvJbLD8fTipE0A0JbQD1lZB94zYFPoh01PI=", "narHash": "sha256-Ub/Y+/zoAoji+E7WCLbTykcTmfRiyzLJ5QEyR3NbHgY=",
"owner": "misterio77", "owner": "misterio77",
"repo": "nix-colors", "repo": "nix-colors",
"rev": "7e459f1d88ac54fc2f4b308adb5064863006e4b1", "rev": "41cc6c1086a4d26509f9fc80a538131d03a11234",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -316,11 +318,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1673295039, "lastModified": 1681154394,
"narHash": "sha256-AsdYgE8/GPwcelGgrntlijMg4t3hLFJFCRF3tL5WVjA=", "narHash": "sha256-avnu1K9AuouygBiwVKuDp6emiTET43az3rcpv0ctLjc=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "87b9d090ad39b25b2400029c64825fc2a8868943", "rev": "025912529dd0b31dead95519e944ea05f1ad56f2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -382,11 +384,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1677932085, "lastModified": 1681465517,
"narHash": "sha256-+AB4dYllWig8iO6vAiGGYl0NEgmMgGHpy9gzWJ3322g=", "narHash": "sha256-EasJh15/jcJNAHtq2SGbiADRXteURAnQbj1NqBoKkzU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3c5319ad3aa51551182ac82ea17ab1c6b0f0df89", "rev": "abe7316dd51a313ce528972b104f4f04f56eefc4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -414,11 +416,11 @@
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1655599917, "lastModified": 1680397293,
"narHash": "sha256-kjZbt5WdTrnjMxL79okg9TCoRUdADG50x/TWozbyTsE=", "narHash": "sha256-wBpJ73+tJ8fZSWb4tzNbAVahC4HSo2QG3nICDy4ExBQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "5fb55578aa2f1a502d636a8ac71aece57cb730bb", "rev": "b18d328214ca3c627d3cc3f51fd9d1397fdbcd7a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -477,11 +479,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1679168785, "lastModified": 1681541221,
"narHash": "sha256-DQ79Ih7qhXdoePmLtf1pXVc+JZwpm+SVBkpsPkY8Y9k=", "narHash": "sha256-lt+iea1TlHzWGfbShveXj6FOE8FXC5nHnBOjz8ftfHM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "04277085ab26a094f5eee2c0303e473bd1bc2ee0", "rev": "425b65fc5dca82de0d628b43638ee93599660f57",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -505,6 +507,21 @@
"zls-overlay": "zls-overlay" "zls-overlay": "zls-overlay"
} }
}, },
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tres": { "tres": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -518,21 +535,6 @@
} }
}, },
"utils": { "utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"utils_2": {
"locked": { "locked": {
"lastModified": 1652776076, "lastModified": 1652776076,
"narHash": "sha256-gzTw/v1vj4dOVbpBSJX4J0DwUR6LIyXo7/SuuTJp1kM=", "narHash": "sha256-gzTw/v1vj4dOVbpBSJX4J0DwUR6LIyXo7/SuuTJp1kM=",
@ -553,7 +555,7 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"utils": "utils_2" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1671338321, "lastModified": 1671338321,
@ -578,11 +580,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1678104540, "lastModified": 1681560430,
"narHash": "sha256-djjTbyH31o70eeA4RouFn1Fau1/Xkt2+yNV0T+6uGg4=", "narHash": "sha256-HuU22HP2Ah2E5MWbQ9u6YoB6L1txnCM8nyCpax8flnA=",
"owner": "mitchellh", "owner": "mitchellh",
"repo": "zig-overlay", "repo": "zig-overlay",
"rev": "5cb7ca6e5b70b11a0f1504736164b6fd34ec98c9", "rev": "0ece65731201765d2c2c5078e7c29cefc00d4977",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -601,11 +603,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1678018077, "lastModified": 1681474068,
"narHash": "sha256-Gwzyc99gdpi7m7i6pRQhtAjWcvJRvJT65s2E9CTjCg0=", "narHash": "sha256-Yo90j0o1+T6ab2XGK3Yjy0Sm+fAG9VswoANINgHAWfc=",
"owner": "mitchellh", "owner": "mitchellh",
"repo": "zig-overlay", "repo": "zig-overlay",
"rev": "09cda6f73587dd4d5dfa8ab8490a94eff5651001", "rev": "097485122ab0a997ed094a26c11d437a86f4cd93",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -627,11 +629,11 @@
"zig-overlay": "zig-overlay_2" "zig-overlay": "zig-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1678045107, "lastModified": 1681494644,
"narHash": "sha256-F5NICNfaxhZ0wzeFNvnivStYF5Fi8I6vO3y4F8s8WY4=", "narHash": "sha256-1VvQvIPaynMc/+bwXy46cSMlND2D6f+IKB4odOjaERo=",
"owner": "zigtools", "owner": "zigtools",
"repo": "zls", "repo": "zls",
"rev": "8edb8bcac34b53ad674470cc06f2ea2d9ad72be1", "rev": "421ae86917127ac6050c3fdbb6b153d664bb04e8",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -23,7 +23,7 @@
# Home Manager # Home Manager
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-22.11"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
@ -77,8 +77,9 @@
} @ inputs: } @ inputs:
let let
inherit (self) outputs; inherit (self) outputs;
util = import ./util { inherit inputs outputs; };
in in
with (import ./lib { inherit inputs outputs; }); rec { with util; rec {
# Packages (`nix build`) # Packages (`nix build`)
packages = forEachPkgs (pkgs: packages = forEachPkgs (pkgs:
import ./pkgs { inherit pkgs; } import ./pkgs { inherit pkgs; }

View file

@ -28,7 +28,9 @@
}; };
# Clean temporary directory on boot # Clean temporary directory on boot
cleanTmpDir = true; tmp = {
cleanOnBoot = true;
};
# Enable support for nfs and ntfs # Enable support for nfs and ntfs
supportedFilesystems = [ supportedFilesystems = [
@ -121,11 +123,13 @@
"__GLX_VENDOR_LIBRARY_NAME" = "nvidia"; "__GLX_VENDOR_LIBRARY_NAME" = "nvidia";
"WLR_NO_HARDWARE_CURSORS" = "1"; "WLR_NO_HARDWARE_CURSORS" = "1";
"MOZ_DISABLE_RDD_SANDBOX" = "1"; "MOZ_DISABLE_RDD_SANDBOX" = "1";
"MOZ_ENABLE_WAYLAND" = "1";
"EGL_PLATFORM" = "wayland"; "EGL_PLATFORM" = "wayland";
"XDG_CURRENT_DESKTOP" = "sway"; # river "XDG_CURRENT_DESKTOP" = "sway"; # river
"XKB_DEFAULT_LAYOUT" = "us,bg"; "XKB_DEFAULT_LAYOUT" = "us,bg";
"XKB_DEFAULT_VARIANT" = ",phonetic"; "XKB_DEFAULT_VARIANT" = ",phonetic";
"XKB_DEFAULT_OPTIONS" = "caps:escape,grp:lalt_lshift_toggle"; "XKB_DEFAULT_OPTIONS" = "caps:escape,grp:lalt_lshift_toggle";
# "WLR_RENDERER" = "vulkan"; # BUG: river crashes
}; };
### Wayland specific ### Wayland specific
@ -144,10 +148,16 @@
}; };
# Enable desktop portal # Enable desktop portal
xdg.portal.extraPortals = [ xdg.portal = {
enable = true;
wlr = {
enable = true;
};
extraPortals = [
pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-wlr pkgs.xdg-desktop-portal-wlr
]; ];
};
## X11 specific ## X11 specific
services.xserver = { services.xserver = {
@ -195,6 +205,10 @@
extraGroups = [ "wheel" "docker" ]; extraGroups = [ "wheel" "docker" ];
}; };
programs.zsh = {
enable = true;
};
home-manager = { home-manager = {
backupFileExtension = "hm-bak"; backupFileExtension = "hm-bak";
useUserPackages = true; useUserPackages = true;