Update NixOS to 23.11

This commit is contained in:
Paul-Henri Froidmont 2024-02-09 15:15:20 +01:00
parent 83fd9a8ea6
commit eea9e47197
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
8 changed files with 59 additions and 52 deletions

78
flake.lock generated
View file

@ -40,11 +40,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1695921859, "lastModified": 1707469552,
"narHash": "sha256-9QUM3d1TxCwCMhunV7VvtV4+BOe9vynlwks8TByhFfA=", "narHash": "sha256-CPHB05n2FKAcPtjLows1+cEOA3ivDeFHs5bkvTGSgR4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "ef992bca01ef97e8bbd1136693d24665390f39ce", "rev": "eda89e24ee4ceb6e4bfcd00dabb894d6301c36db",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -187,11 +187,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1694529238, "lastModified": 1705309234,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384", "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -254,11 +254,11 @@
"gruvbox-kvantum-theme": { "gruvbox-kvantum-theme": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1674507936, "lastModified": 1696096968,
"narHash": "sha256-orAPLYxl9/KMzGlX7YCpq5FTKa/4FG8/qEv2xdC9QOM=", "narHash": "sha256-u2J4Zf9HuMjNCt3qVpgEffkytl/t277FzOvWL8Nm8os=",
"owner": "sachnr", "owner": "sachnr",
"repo": "gruvbox-kvantum-themes", "repo": "gruvbox-kvantum-themes",
"rev": "439fe6df66644579abcd11169200c8a20a134d5f", "rev": "f47670be407c1f07c64890ad53884ee9977a7db1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -274,16 +274,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1695108154, "lastModified": 1706981411,
"narHash": "sha256-gSg7UTVtls2yO9lKtP0yb66XBHT1Fx5qZSZbGMpSn2c=", "narHash": "sha256-cLbLPTL1CDmETVh4p0nQtvoF+FSEjsnJTFpTxhXywhQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "07682fff75d41f18327a871088d20af2710d4744", "rev": "652fda4ca6dafeb090943422c34ae9145787af37",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-23.05", "ref": "release-23.11",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -317,11 +317,11 @@
"ws-butler": "ws-butler" "ws-butler": "ws-butler"
}, },
"locked": { "locked": {
"lastModified": 1695346081, "lastModified": 1701264882,
"narHash": "sha256-ELuMibAhsgOEIzoPb9ZodYLcde0qSEP6ZuVIvFDIb6A=", "narHash": "sha256-MBXR7x7Ua8qystlGr+lenwjQd7dsFNFpEFmtHhh10zM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-doom-emacs", "repo": "nix-doom-emacs",
"rev": "5bbefaee92c4277ff1961b333f9937f5180d15f3", "rev": "f7413022370f24bb53cb450bfb2803233510113e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -348,11 +348,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1695644571, "lastModified": 1707268954,
"narHash": "sha256-asS9dCCdlt1lPq0DLwkVBbVoEKuEuz+Zi3DG7pR/RxA=", "narHash": "sha256-2en1kvde3cJVc3ZnTy8QeD2oKcseLFjYPLKhIGDanQ0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6500b4580c2a1f3d0f980d32d285739d8e156d92", "rev": "f8e2ebd66d097614d51a56a755450d4ae1632df1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -364,27 +364,27 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1695825837, "lastModified": 1707347730,
"narHash": "sha256-4Ne11kNRnQsmSJCRSSNkFRSnHC4Y5gPDBIQGjjPfJiU=", "narHash": "sha256-0etC/exQIaqC9vliKhc3eZE2Mm2wgLa0tj93ZF/egvM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5cfafa12d57374f48bcc36fda3274ada276cf69e", "rev": "6832d0d99649db3d65a0e15fa51471537b2c56a6",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-23.05", "ref": "nixos-23.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1695830400, "lastModified": 1707268954,
"narHash": "sha256-gToZXQVr0G/1WriO83olnqrLSHF2Jb8BPcmCt497ro0=", "narHash": "sha256-2en1kvde3cJVc3ZnTy8QeD2oKcseLFjYPLKhIGDanQ0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8a86b98f0ba1c405358f1b71ff8b5e1d317f5db2", "rev": "f8e2ebd66d097614d51a56a755450d4ae1632df1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -396,11 +396,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1695132891, "lastModified": 1695806987,
"narHash": "sha256-cJR9AFHmt816cW/C9necLJyOg/gsnkvEeFAfxgeM1hc=", "narHash": "sha256-fX5kGs66NZIxCMcpAGIpxuftajHL8Hil1vjHmjjl118=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8b5ab8341e33322e5b66fb46ce23d724050f6606", "rev": "f3dab3509afca932f3f4fd0908957709bb1c1f57",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -411,16 +411,16 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1695825837, "lastModified": 1707347730,
"narHash": "sha256-4Ne11kNRnQsmSJCRSSNkFRSnHC4Y5gPDBIQGjjPfJiU=", "narHash": "sha256-0etC/exQIaqC9vliKhc3eZE2Mm2wgLa0tj93ZF/egvM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5cfafa12d57374f48bcc36fda3274ada276cf69e", "rev": "6832d0d99649db3d65a0e15fa51471537b2c56a6",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-23.05", "ref": "nixos-23.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -460,11 +460,11 @@
"org": { "org": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1695208951, "lastModified": 1695726851,
"narHash": "sha256-GdkBhWg/bIwnQk4/a/Ief+cFtDcUJEMNqiFYO3A5sus=", "narHash": "sha256-qgbjspklSoI8M3cbCJOcUdjuijRgsL/+PSyEOW9VX4I=",
"owner": "emacs-straight", "owner": "emacs-straight",
"repo": "org-mode", "repo": "org-mode",
"rev": "266aac1186256aaf3fb1bb1181ee83d548092d12", "rev": "aa9177e1a8b039c357d369c1c9aaab710bb247a9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -524,11 +524,11 @@
"revealjs": { "revealjs": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1695108593, "lastModified": 1695738029,
"narHash": "sha256-1Rb3w4Mpzv81pw7FaZHdQULK6+9oZIzeQ6uCD4PvjJM=", "narHash": "sha256-Z9c9Q41jMkj/DyXOiZYyIa7Gmn8VB8yauTyWrSsT+ps=",
"owner": "hakimel", "owner": "hakimel",
"repo": "reveal.js", "repo": "reveal.js",
"rev": "db2523db277bea632c218a7d836f27079a1be7f9", "rev": "88fbfc5751ad01e3f6adee5819eabeb9e73c3757",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,9 +1,9 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.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-23.05"; url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
emacs-overlay.url = "github:nix-community/emacs-overlay"; emacs-overlay.url = "github:nix-community/emacs-overlay";

View file

@ -7,7 +7,7 @@ in {
config = mkIf config.services.xserver.enable { config = mkIf config.services.xserver.enable {
fonts = { fonts = {
fonts = with pkgs.unstable; [ packages = with pkgs.unstable; [
corefonts # Microsoft free fonts corefonts # Microsoft free fonts
(nerdfonts.override { fonts = [ "Meslo" "NerdFontsSymbolsOnly" ]; }) (nerdfonts.override { fonts = [ "Meslo" "NerdFontsSymbolsOnly" ]; })
]; ];

View file

@ -22,7 +22,7 @@ in {
}; };
enableCompletion = true; enableCompletion = true;
enableAutosuggestions = true; enableAutosuggestions = true;
enableSyntaxHighlighting = true; syntaxHighlighting.enable = true;
initExtra = '' initExtra = ''
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search zle -N up-line-or-beginning-search

View file

@ -2,7 +2,16 @@
with lib; with lib;
with lib.my; with lib.my;
let cfg = config.modules.editor.emacs; let
cfg = config.modules.editor.emacs;
myEmacs = pkgs.unstable.emacs29.override {
withNativeCompilation = true;
withSQLite3 = true;
withTreeSitter = true;
withWebP = true;
};
myEmacsWithPackages = myEmacs.pkgs.withPackages
(epkgs: with epkgs; [ vterm pdf-tools treesit-grammars.with-all-grammars ]);
in { in {
options.modules.editor.emacs = { enable = mkBoolOpt false; }; options.modules.editor.emacs = { enable = mkBoolOpt false; };
@ -23,7 +32,7 @@ in {
cmake cmake
nodejs nodejs
terraform opentofu
pandoc pandoc
# Formatters and linters # Formatters and linters
@ -68,17 +77,13 @@ in {
services.emacs = { services.emacs = {
enable = true; enable = true;
client.enable = true; client.enable = true;
package = with pkgs; package = myEmacsWithPackages;
((emacsPackagesFor emacsNativeComp).emacsWithPackages
(epkgs: [ epkgs.vterm ]));
}; };
# Use either this or nix-doom-emacs # Use either this or nix-doom-emacs
programs.emacs = { programs.emacs = {
enable = true; enable = true;
package = with pkgs; package = myEmacs;
((emacsPackagesFor emacsNativeComp).emacsWithPackages
(epkgs: [ epkgs.vterm ]));
}; };
xdg.configFile = { "doom" = { source = ./doom.d; }; }; xdg.configFile = { "doom" = { source = ./doom.d; }; };
home.sessionPath = [ home.sessionPath = [

View file

@ -15,7 +15,7 @@ in {
config = { config = {
user.packages = with pkgs; [ user.packages = with pkgs; [
(mkIf cfg.psx.enable epsxe) (mkIf cfg.psx.enable duckstation)
(mkIf cfg.ds.enable desmume) (mkIf cfg.ds.enable desmume)
(mkIf cfg.gc.enable dolphinEmu) (mkIf cfg.gc.enable dolphinEmu)
(mkIf (cfg.gba.enable || cfg.gb.enable || cfg.snes.enable) higan) (mkIf (cfg.gba.enable || cfg.gb.enable || cfg.snes.enable) higan)

View file

@ -13,6 +13,7 @@ in {
user.packages = with pkgs; [ user.packages = with pkgs; [
(mkIf cfg.steam.enable steam) (mkIf cfg.steam.enable steam)
(mkIf cfg.lutris.enable lutris) (mkIf cfg.lutris.enable lutris)
(mkIf cfg.lutris.enable wine)
(mkIf (cfg.steam.enable || cfg.lutris.enable) protontricks) (mkIf (cfg.steam.enable || cfg.lutris.enable) protontricks)
]; ];
}; };

View file

@ -13,6 +13,7 @@ in {
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = "*";
}; };
}; };