Switch to unstable

This commit is contained in:
Paul-Henri Froidmont 2024-10-13 22:52:21 +02:00
parent d23beebddf
commit 683972662b
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
16 changed files with 93 additions and 117 deletions

View file

@ -13,7 +13,7 @@
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes"; extraOptions = "experimental-features = nix-command flakes";
nixPath = [ "nixpkgs=${inputs.nixpkgs-unstable}" ]; nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
settings = { settings = {
substituters = [ substituters = [
"https://nix-community.cachix.org" "https://nix-community.cachix.org"

45
flake.lock generated
View file

@ -28,11 +28,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1728698619, "lastModified": 1728839477,
"narHash": "sha256-DcJvKq0HDrPc2PHw9mtXzaiGYiAG2SgQPHov36voDkU=", "narHash": "sha256-HXWknm3vRHknK0yKdlO1qKFxO6f8lJHaufFekxjL4RY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "eac5f2748d0719b747e21b486c1686aa1e23a9ae", "rev": "1ac99536bb5eb9b2b4fc161bd0651bcbbb36c6d9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -182,16 +182,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1726989464, "lastModified": 1728791962,
"narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=", "narHash": "sha256-nr5QiXwQcZmf6/auC1UpX8iAtINMtdi2mH+OkqJQVmU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176", "rev": "64c6325b28ebd708653dd41d88f306023f296184",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-24.05", "ref": "master",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -257,11 +257,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1728500571, "lastModified": 1728740863,
"narHash": "sha256-dOymOQ3AfNI4Z337yEwHGohrVQb4yPODCW9MDUyAc4w=", "narHash": "sha256-u+rxA79a0lyhG+u+oPBRtTDtzz8kvkc9a6SWSt9ekVc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d51c28603def282a24fa034bcb007e2bcb5b5dd0", "rev": "a3f9ad65a0bf298ed5847629a57808b97e6e8077",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -271,7 +271,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1728492678, "lastModified": 1728492678,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=", "narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
@ -287,22 +287,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1728627514,
"narHash": "sha256-r+SF9AnHrTg+bk6YszoKfV9lgyw+yaFUQe0dOjI0Z2o=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c505ebf777526041d792a49d5f6dd4095ea391a7",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"devshell": "devshell", "devshell": "devshell",
@ -337,7 +321,6 @@
"flameshot-git": "flameshot-git", "flameshot-git": "flameshot-git",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim", "nixvim": "nixvim",
"vim-org-roam": "vim-org-roam", "vim-org-roam": "vim-org-roam",
"vim-yazi": "vim-yazi" "vim-yazi": "vim-yazi"
@ -398,11 +381,11 @@
"vim-yazi": { "vim-yazi": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1728500095, "lastModified": 1728834368,
"narHash": "sha256-zaA/YJyqjA6jX25uelWYFVW4iMJ7eza1b/LH6RWo30U=", "narHash": "sha256-hvrtjNkieHFs/VzeEPlI+nkFoTsRX/c32bBOjXPBwpM=",
"owner": "mikavilpas", "owner": "mikavilpas",
"repo": "yazi.nvim", "repo": "yazi.nvim",
"rev": "1e8d63d85176d5e0cca191fd6c5847839b65bfa8", "rev": "bff42c2ead02675d66e31799d2f3edaba29a4c79",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,9 +1,8 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-24.05"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
emacs-overlay.url = "github:nix-community/emacs-overlay"; emacs-overlay.url = "github:nix-community/emacs-overlay";
@ -29,7 +28,6 @@
inputs@{ inputs@{
self, self,
nixpkgs, nixpkgs,
nixpkgs-unstable,
... ...
}: }:
let let
@ -51,8 +49,8 @@
]; ];
overlays = extraOverlays ++ (pkgs.lib.attrValues self.overlays); overlays = extraOverlays ++ (pkgs.lib.attrValues self.overlays);
}; };
pkgs = mkPkgs nixpkgs [ self.overlay ];
pkgs-unstable = mkPkgs nixpkgs-unstable [ ]; pkgs = mkPkgs nixpkgs [ ];
lib = nixpkgs.lib.extend ( lib = nixpkgs.lib.extend (
self: super: { self: super: {
@ -66,8 +64,6 @@
{ {
lib = lib.my; lib = lib.my;
overlay = final: prev: { unstable = pkgs-unstable; };
overlays = { overlays = {
my = import ./overlay.nix; my = import ./overlay.nix;
}; };

View file

@ -63,10 +63,9 @@
networking.useNetworkd = true; networking.useNetworkd = true;
networking.interfaces.enp31s0.useDHCP = true; networking.interfaces.enp31s0.useDHCP = true;
hardware.opengl = { hardware.graphics = {
enable = true; enable = true;
driSupport = true; enable32Bit = true;
driSupport32Bit = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
rocm-opencl-icd rocm-opencl-icd
rocm-opencl-runtime rocm-opencl-runtime

View file

@ -38,7 +38,7 @@ in
}; };
theme = ./theme.rasi; theme = ./theme.rasi;
}; };
home.packages = with pkgs.unstable; [ home.packages = with pkgs; [
paper-icon-theme paper-icon-theme
rofi-power-menu rofi-power-menu
]; ];

View file

@ -23,7 +23,7 @@ in
config = lib.mkIf config.modules.desktop.wm.enable { config = lib.mkIf config.modules.desktop.wm.enable {
fonts = { fonts = {
packages = with pkgs.unstable; [ packages = with pkgs; [
corefonts # Microsoft free fonts corefonts # Microsoft free fonts
noto-fonts-emoji noto-fonts-emoji
meslo-lg meslo-lg
@ -151,7 +151,7 @@ in
sessionVariables.EDITOR = "vim"; sessionVariables.EDITOR = "vim";
packages = packages =
(with pkgs.unstable; [ (with pkgs; [
brave brave
ungoogled-chromium ungoogled-chromium
mullvad-browser mullvad-browser

View file

@ -17,7 +17,7 @@ in
programs.yazi = { programs.yazi = {
enable = true; enable = true;
package = pkgs.unstable.yazi; package = pkgs.yazi;
enableZshIntegration = true; enableZshIntegration = true;
settings = { settings = {
manager = { manager = {
@ -73,7 +73,7 @@ in
}; };
home = { home = {
packages = with pkgs.unstable; [ packages = with pkgs; [
ffmpegthumbnailer ffmpegthumbnailer
unar unar
poppler poppler

View file

@ -37,7 +37,7 @@ in
}; };
}; };
}; };
home.packages = with pkgs.unstable; [ grim ]; home.packages = [ pkgs.grim ];
}; };
}; };

View file

@ -28,7 +28,7 @@ in
"ctrl+shift+semicolon" = "scroll_to_prompt 1"; "ctrl+shift+semicolon" = "scroll_to_prompt 1";
"ctrl+shift+t" = "new_tab_with_cwd"; "ctrl+shift+t" = "new_tab_with_cwd";
}; };
theme = "Gruvbox Dark"; themeFile = "gruvbox-dark";
}; };
}; };
}; };

View file

@ -39,11 +39,11 @@ in
gtk = { gtk = {
enable = true; enable = true;
cursorTheme = { cursorTheme = {
package = pkgs.unstable.paper-icon-theme; package = pkgs.paper-icon-theme;
name = "Paper"; name = "Paper";
}; };
theme = { theme = {
package = pkgs.unstable.adw-gtk3; package = pkgs.adw-gtk3;
name = "adw-gtk3"; name = "adw-gtk3";
}; };
iconTheme = { iconTheme = {
@ -63,7 +63,7 @@ in
home = { home = {
pointerCursor = { pointerCursor = {
package = pkgs.unstable.paper-icon-theme; package = pkgs.paper-icon-theme;
name = "Paper"; name = "Paper";
size = 24; size = 24;
gtk.enable = true; gtk.enable = true;

View file

@ -28,7 +28,7 @@ in
platformTheme.name = "gtk"; platformTheme.name = "gtk";
style = { style = {
name = "adwaita-dark"; name = "adwaita-dark";
package = pkgs.unstable.adwaita-qt; package = pkgs.adwaita-qt;
}; };
}; };
}; };

View file

@ -116,7 +116,6 @@ in
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
# package = pkgs.unstable.hyprland;
systemd.enable = true; systemd.enable = true;
xwayland.enable = true; xwayland.enable = true;
settings = { settings = {
@ -417,7 +416,7 @@ in
}; };
home = { home = {
packages = with pkgs.unstable; [ packages = with pkgs; [
wlr-randr wlr-randr
wl-clipboard wl-clipboard
wdisplays wdisplays
@ -486,7 +485,7 @@ in
]; ];
}; };
hardware.opengl.enable = true; hardware.graphics.enable = true;
security.pam.services.swaylock = { }; security.pam.services.swaylock = { };

View file

@ -21,61 +21,61 @@ in
home = { home = {
packages = [ packages = [
pkgs.unstable.binutils pkgs.binutils
pkgs.unstable.ripgrep pkgs.ripgrep
pkgs.unstable.fd pkgs.fd
pkgs.unstable.findutils.locate pkgs.findutils.locate
pkgs.unstable.python311 pkgs.python311
pkgs.unstable.libsecret pkgs.libsecret
pkgs.unstable.gcc pkgs.gcc
pkgs.unstable.gnumake pkgs.gnumake
pkgs.unstable.cmake pkgs.cmake
pkgs.unstable.nodejs pkgs.nodejs
pkgs.unstable.opentofu pkgs.opentofu
pkgs.unstable.pandoc pkgs.pandoc
# Formatters and linters # Formatters and linters
pkgs.unstable.nixfmt-rfc-style # nix formatter pkgs.nixfmt-rfc-style # nix formatter
pkgs.unstable.nixpkgs-fmt pkgs.nixpkgs-fmt
pkgs.unstable.shfmt # sh formatter pkgs.shfmt # sh formatter
pkgs.unstable.shellcheck # sh linter pkgs.shellcheck # sh linter
pkgs.unstable.html-tidy # HTML formatter pkgs.html-tidy # HTML formatter
pkgs.unstable.nodePackages.stylelint # CSS linter pkgs.nodePackages.stylelint # CSS linter
pkgs.unstable.nodePackages.js-beautify # JS/CSS/HTML formatter pkgs.nodePackages.js-beautify # JS/CSS/HTML formatter
# LSPs # LSPs
pkgs.unstable.coursier pkgs.coursier
# metals # Scala # metals # Scala
# Nix # Nix
pkgs.unstable.nil pkgs.nil
pkgs.phpactor # PHP pkgs.phpactor # PHP
#OCaml #OCaml
pkgs.unstable.ocaml pkgs.ocaml
pkgs.unstable.dune_3 pkgs.dune_3
pkgs.unstable.ocamlPackages.ocaml-lsp pkgs.ocamlPackages.ocaml-lsp
pkgs.unstable.ocamlPackages.ocamlformat pkgs.ocamlPackages.ocamlformat
pkgs.unstable.ocamlPackages.utop pkgs.ocamlPackages.utop
pkgs.unstable.ocamlPackages.ocp-indent pkgs.ocamlPackages.ocp-indent
pkgs.unstable.ocamlPackages.merlin pkgs.ocamlPackages.merlin
# Used by org-roam # Used by org-roam
pkgs.unstable.sqlite pkgs.sqlite
pkgs.unstable.graphviz pkgs.graphviz
# Used by elfeed-tube # Used by elfeed-tube
pkgs.unstable.yt-dlp pkgs.yt-dlp
pkgs.unstable.mpv pkgs.mpv
# Used by dirvish # Used by dirvish
pkgs.unstable.imagemagick pkgs.imagemagick
pkgs.unstable.ffmpegthumbnailer pkgs.ffmpegthumbnailer
pkgs.unstable.mediainfo pkgs.mediainfo
pkgs.unstable.poppler pkgs.poppler
pkgs.unstable.gnutar pkgs.gnutar
pkgs.unstable.unzip pkgs.unzip
]; ];
sessionPath = [ "${config.home-manager.users.${config.user.name}.xdg.configHome}/emacs/bin" ]; sessionPath = [ "${config.home-manager.users.${config.user.name}.xdg.configHome}/emacs/bin" ];
activation = { activation = {
@ -96,7 +96,7 @@ in
programs.emacs = { programs.emacs = {
enable = true; enable = true;
package = pkgs.unstable.emacs29.override { package = pkgs.emacs29.override {
withNativeCompilation = true; withNativeCompilation = true;
withPgtk = true; withPgtk = true;
withSQLite3 = true; withSQLite3 = true;

View file

@ -20,12 +20,12 @@ in
programs.neovim = { programs.neovim = {
enable = true; enable = true;
package = pkgs.unstable.neovim-unwrapped; package = pkgs.neovim-unwrapped;
vimAlias = true; vimAlias = true;
vimdiffAlias = true; vimdiffAlias = true;
withNodeJs = true; withNodeJs = true;
plugins = plugins =
(with pkgs.unstable.vimPlugins; [ (with pkgs.vimPlugins; [
# base distro # base distro
LazyVim LazyVim
conform-nvim conform-nvim
@ -141,7 +141,7 @@ in
gcc # needed for nvim-treesitter gcc # needed for nvim-treesitter
# HTML, CSS, JSON # HTML, CSS, JSON
unstable.vscode-langservers-extracted vscode-langservers-extracted
# Nix # Nix
nixd nixd
@ -264,7 +264,7 @@ in
programs.nixvim = { programs.nixvim = {
enable = false; enable = false;
package = pkgs.unstable.neovim-unwrapped; package = pkgs.neovim-unwrapped;
vimAlias = true; vimAlias = true;
keymaps = [ keymaps = [
@ -328,7 +328,7 @@ in
''; '';
} }
{ {
pkg = pkgs.unstable.vimPlugins.which-key-nvim; pkg = pkgs.vimPlugins.which-key-nvim;
event = "VimEnter"; event = "VimEnter";
config = # lua config = # lua
'' ''
@ -404,24 +404,24 @@ in
setup("terraformls", {}) setup("terraformls", {})
setup("marksman", {}) setup("marksman", {})
setup("lua_ls", {}) setup("lua_ls", {})
setup("jsonls", { cmd = { "${pkgs.unstable.vscode-langservers-extracted}/bin/vscode-json-language-server", "--stdio" } }) setup("jsonls", { cmd = { "${pkgs.vscode-langservers-extracted}/bin/vscode-json-language-server", "--stdio" } })
setup("html", { cmd = { "${pkgs.unstable.vscode-langservers-extracted}/bin/vscode-html-language-server", "--stdio" } }) setup("html", { cmd = { "${pkgs.vscode-langservers-extracted}/bin/vscode-html-language-server", "--stdio" } })
setup("eslint", { cmd = { "${pkgs.unstable.vscode-langservers-extracted}/bin/vscode-eslint-language-server", "--stdio" } }) setup("eslint", { cmd = { "${pkgs.vscode-langservers-extracted}/bin/vscode-eslint-language-server", "--stdio" } })
setup("dockerls", { cmd = { "${pkgs.unstable.dockerfile-language-server-nodejs}/bin/docker-langserver", "--stdio" } }) setup("dockerls", { cmd = { "${pkgs.dockerfile-language-server-nodejs}/bin/docker-langserver", "--stdio" } })
setup("docker_compose_language_service", {}) setup("docker_compose_language_service", {})
setup("cssls", { cmd = { "${pkgs.unstable.vscode-langservers-extracted}/bin/vscode-css-language-server", "--stdio" } }) setup("cssls", { cmd = { "${pkgs.vscode-langservers-extracted}/bin/vscode-css-language-server", "--stdio" } })
setup("bashls", {}) setup("bashls", {})
setup("ansiblels", { cmd = { "${pkgs.unstable.ansible-language-server}/bin/ansible-language-server", "--stdio" } }) setup("ansiblels", { cmd = { "${pkgs.ansible-language-server}/bin/ansible-language-server", "--stdio" } })
end end
''; '';
} }
{ {
pkg = pkgs.unstable.vimPlugins.nvim-cmp; pkg = pkgs.vimPlugins.nvim-cmp;
event = "InsertEnter"; event = "InsertEnter";
dependencies = [ dependencies = [
pkgs.unstable.vimPlugins.cmp-nvim-lsp pkgs.vimPlugins.cmp-nvim-lsp
pkgs.unstable.vimPlugins.cmp-path pkgs.vimPlugins.cmp-path
pkgs.unstable.vimPlugins.cmp-buffer pkgs.vimPlugins.cmp-buffer
]; ];
opts.__raw = # lua opts.__raw = # lua
'' ''
@ -452,7 +452,7 @@ in
# Disabled for now as it tries to write org grammar to its own directory in the nix store # Disabled for now as it tries to write org grammar to its own directory in the nix store
# https://github.com/nvim-orgmode/orgmode/blob/95fb795a422f0455e03d13a3f83525f1d00793ad/lua/orgmode/utils/treesitter/install.lua#L9 # https://github.com/nvim-orgmode/orgmode/blob/95fb795a422f0455e03d13a3f83525f1d00793ad/lua/orgmode/utils/treesitter/install.lua#L9
# { # {
# pkg = pkgs.unstable.vimPlugins.orgmode; # pkg = pkgs.vimPlugins.orgmode;
# event = "VeryLazy"; # event = "VeryLazy";
# ft = [ "org" ]; # ft = [ "org" ];
# config = /*lua*/ '' # config = /*lua*/ ''
@ -469,7 +469,7 @@ in
# name = "org-roam.nvim"; # name = "org-roam.nvim";
# src = inputs.vim-org-roam; # src = inputs.vim-org-roam;
# }); # });
# dependencies = [ pkgs.unstable.vimPlugins.orgmode ]; # dependencies = [ pkgs.vimPlugins.orgmode ];
# event = "VeryLazy"; # event = "VeryLazy";
# ft = [ "org" ]; # ft = [ "org" ];
# config = /*lua*/ '' # config = /*lua*/ ''
@ -485,7 +485,7 @@ in
}; };
}; };
home.packages = with pkgs.unstable; [ home.packages = with pkgs; [
ripgrep ripgrep
fd fd
nodejs nodejs

View file

@ -14,7 +14,6 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
sound.enable = true;
security.rtkit.enable = true; security.rtkit.enable = true;
@ -24,7 +23,7 @@ in
}; };
home-manager.users.${config.user.name} = { home-manager.users.${config.user.name} = {
home.packages = with pkgs.unstable; [ pulsemixer ]; home.packages = [ pkgs.pulsemixer ];
}; };
}; };
} }

View file

@ -17,7 +17,7 @@ in
home-manager.users.${config.user.name} = { home-manager.users.${config.user.name} = {
home = { home = {
packages = with pkgs.unstable; [ packages = with pkgs; [
(ncmpcpp.override { visualizerSupport = true; }) (ncmpcpp.override { visualizerSupport = true; })
mpc_cli mpc_cli
]; ];