flake: switch to nixpkgs unstable by default

This commit is contained in:
lelgenio 2023-06-13 17:14:11 -03:00
parent 37df277974
commit a024dad386
8 changed files with 14 additions and 43 deletions

View file

@ -445,7 +445,7 @@
"inputs": { "inputs": {
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",
"nixpkgs": [ "nixpkgs": [
"nixpkgs-unstable" "nixpkgs"
], ],
"wlroots": "wlroots", "wlroots": "wlroots",
"xdph": "xdph" "xdph": "xdph"
@ -614,21 +614,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1685655444,
"narHash": "sha256-6EujQNAeaUkWvpEZZcVF8qSfQrNVWFNNGbUJxv/A5a8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e635192892f5abbc2289eaac3a73cdb249abaefd",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1673796341, "lastModified": 1673796341,
@ -647,16 +632,16 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1685620773, "lastModified": 1686501370,
"narHash": "sha256-iQ+LmporQNdLz8uMJdP62TaAWeLUwl43/MYUBtWqulM=", "narHash": "sha256-G0WuM9fqTPRc2URKP9Lgi5nhZMqsfHGrdEbrLvAPJcg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f0ba8235153dd2e25cf06cbf70d43efdd4443592", "rev": "75a5ebf473cd60148ba9aec0d219f72e5cf52519",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-23.05", "ref": "nixos-unstable",
"type": "indirect" "type": "indirect"
} }
}, },
@ -740,7 +725,6 @@
"nix-software-center": "nix-software-center", "nix-software-center": "nix-software-center",
"nixos-conf-editor": "nixos-conf-editor", "nixos-conf-editor": "nixos-conf-editor",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_3",
"nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur", "nur": "nur",
"plymouth-themes": "plymouth-themes", "plymouth-themes": "plymouth-themes",
"ranger-icons": "ranger-icons", "ranger-icons": "ranger-icons",

View file

@ -1,8 +1,7 @@
{ {
description = "My system config"; description = "My system config";
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05"; nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-23.05"; home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
@ -14,7 +13,7 @@
hyprland = { hyprland = {
url = "github:hyprwm/Hyprland"; url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs-unstable"; inputs.nixpkgs.follows = "nixpkgs";
}; };
alacritty-sixel.url = "github:ayosec/alacritty"; alacritty-sixel.url = "github:ayosec/alacritty";
@ -72,7 +71,7 @@
nixos-conf-editor.url = "github:vlinkz/nixos-conf-editor"; nixos-conf-editor.url = "github:vlinkz/nixos-conf-editor";
nix-software-center.url = "github:vlinkz/nix-software-center"; nix-software-center.url = "github:vlinkz/nix-software-center";
}; };
outputs = inputs@{ nixpkgs, nixpkgs-unstable, home-manager, nur, ... }: outputs = inputs@{ nixpkgs, home-manager, nur, ... }:
let let
inherit (import ./user/variables.nix) desktop; inherit (import ./user/variables.nix) desktop;
system = "x86_64-linux"; system = "x86_64-linux";

View file

@ -3,7 +3,6 @@
nur nur
scripts scripts
sway sway
unstable
sixel-patches sixel-patches
themes themes
new-packages new-packages
@ -17,12 +16,6 @@
sway = (import ./sway.nix); sway = (import ./sway.nix);
unstable = (final: prev: {
unstable = import inputs.nixpkgs-unstable {
inherit (prev) system config;
};
});
sixel-patches = (import ./sixel-patches.nix (inputs)); sixel-patches = (import ./sixel-patches.nix (inputs));
themes = (final: prev: { themes = (final: prev: {
@ -33,13 +26,10 @@
install -D material-wifi.ttf $out/share/fonts/${name} install -D material-wifi.ttf $out/share/fonts/${name}
''; '';
}; };
papirus_red = (final.unstable.papirus-icon-theme.override { color = "red"; }); papirus_red = (final.papirus-icon-theme.override { color = "red"; });
orchis_theme_compact = (final.orchis-theme.override { orchis_theme_compact = (final.orchis-theme.override {
border-radius = 0; border-radius = 0;
tweaks = [ "compact" "solid" ]; tweaks = [ "compact" "solid" ];
}).overrideAttrs (old: {
patches = (old.patches or [ ]) ++
[ ../patches/orchis-fix-warnings.patch ];
}); });
nerdfonts_fira_hack = (final.nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; }); nerdfonts_fira_hack = (final.nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; });
}); });
@ -51,10 +41,10 @@
maildir-notify-daemon = inputs.maildir-notify-daemon.packages.${prev.system}.default; maildir-notify-daemon = inputs.maildir-notify-daemon.packages.${prev.system}.default;
wl-crosshair = inputs.wl-crosshair.packages.${prev.system}.default; wl-crosshair = inputs.wl-crosshair.packages.${prev.system}.default;
webcord = (prev.webcord or prev.unstable.webcord).overrideAttrs (old: { webcord = (prev.webcord or prev.webcord).overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ ../patches/webcord/fix-reading-config.patch ]; patches = (old.patches or [ ]) ++ [ ../patches/webcord/fix-reading-config.patch ];
}); });
mullvad = final.unstable.mullvad; mullvad = final.mullvad;
}); });
patches = (final: prev: { patches = (final: prev: {

View file

@ -1,5 +1,5 @@
inputs: (final: prev: { inputs: (final: prev: {
alacritty = (prev.unstable.alacritty.overrideAttrs (old-alacritty: rec { alacritty = (prev.alacritty.overrideAttrs (old-alacritty: rec {
src = inputs.alacritty-sixel; src = inputs.alacritty-sixel;
cargoDeps = old-alacritty.cargoDeps.overrideAttrs (prev.lib.const { cargoDeps = old-alacritty.cargoDeps.overrideAttrs (prev.lib.const {
inherit src; inherit src;

View file

@ -12,7 +12,7 @@ in {
obs-studio obs-studio
imagemagick imagemagick
mpc-cli mpc-cli
pkgs.unstable.helvum helvum
gimp gimp
inkscape inkscape
kdenlive kdenlive

View file

@ -25,7 +25,6 @@
"wegank.cachix.org-1:xHignps7GtkPP/gYK5LvA/6UFyz98+sgaxBSy7qK0Vs=" "wegank.cachix.org-1:xHignps7GtkPP/gYK5LvA/6UFyz98+sgaxBSy7qK0Vs="
]; ];
}; };
package = pkgs.unstable.nixFlakes; # or versioned attributes like nixVersions.nix_2_8
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';

View file

@ -7,7 +7,6 @@ in
config = { config = {
programs.helix = { programs.helix = {
enable = true; enable = true;
package = pkgs.unstable.helix;
settings = { settings = {
theme = "my-theme"; theme = "my-theme";
editor = { editor = {

View file

@ -83,7 +83,7 @@
# steam # It's enabled in the system config # steam # It's enabled in the system config
tlauncher tlauncher
gamescope gamescope
unstable.amdgpu_top amdgpu_top
glxinfo glxinfo
vulkan-tools vulkan-tools