Switch to stable branch and update inputs

This commit is contained in:
Paul-Henri Froidmont 2023-01-17 11:21:33 +01:00
parent 233f05ec3a
commit bb57760151
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
6 changed files with 196 additions and 177 deletions

39
flake.lock generated
View file

@ -6,11 +6,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1669740584, "lastModified": 1673948101,
"narHash": "sha256-rHxz/olYeCx9GHjJTZElkVCVo4aXaP9FNaQ8oyCLz9A=", "narHash": "sha256-cD0OzFfnLFeeaz4jVszH9QiMTn+PBxmcYzrp+xujpwM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "3b0a446bbf29cfeb78e0d1a8210bdf6fae8efccd", "rev": "bd3efacb82c721edad1ce9eda583df5fb62ab00a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -21,11 +21,27 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1669052418, "lastModified": 1671983799,
"narHash": "sha256-M1I4BKXBQm2gey1tScemEh5TpHHE3gKptL7BpWUvL8s=", "narHash": "sha256-Z2Ro6hFPZHkBqkVXY5/aBUzxi5xizQGvuHQ9+T5B/ks=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8", "rev": "fad51abd42ca17a60fc1d4cb9382e2d79ae31836",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1673796341,
"narHash": "sha256-1kZi9OkukpNmOaPY7S5/+SlCDOuYnP3HkXHvNDyLQcc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "6dccdc458512abce8d19f74195bb20fdb067df50",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -37,16 +53,16 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1669542132, "lastModified": 1673800717,
"narHash": "sha256-DRlg++NJAwPh8io3ExBJdNW7Djs3plVI5jgYQ+iXAZQ=", "narHash": "sha256-SFHraUqLSu5cC6IxTprex/nTsI81ZQAtDvlBvGDWfnA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a115bb9bd56831941be3776c8a94005867f316a7", "rev": "2f9fd351ec37f5d479556cd48be4ca340da59b8f",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-unstable", "ref": "nixos-22.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -54,7 +70,8 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable"
} }
}, },
"utils": { "utils": {

View file

@ -1,17 +1,33 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
}; };
outputs = { self, home-manager, nixpkgs }: { outputs = { self, home-manager, nixpkgs, nixpkgs-unstable }:
let
pkgs-unstable = nixpkgs-unstable.legacyPackages.x86_64-linux;
commonModuleArgs = { pkgs, ... }: {
_module.args.pkgs-unstable = import nixpkgs-unstable {
inherit (pkgs.stdenv.targetPlatform) system;
config.allowUnfreePredicate = pkg: builtins.elem (pkgs.lib.getName pkg) [
"corefonts"
"steam"
"steam-original"
"steam-run"
];
};
};
in
{
nixosConfigurations.nixos-desktop = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos-desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit nixpkgs; }; specialArgs = { inherit nixpkgs; inherit nixpkgs-unstable; };
modules = modules =
[ [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
commonModuleArgs
./hardware/desktop.nix ./hardware/desktop.nix
./profiles/base.nix ./profiles/base.nix
./users ./users
@ -32,10 +48,11 @@
nixosConfigurations.froidmpa-laptop = nixpkgs.lib.nixosSystem { nixosConfigurations.froidmpa-laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit nixpkgs; }; specialArgs = { inherit nixpkgs; inherit nixpkgs-unstable; };
modules = modules =
[ [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
commonModuleArgs
./hardware/clevo-nl51ru.nix ./hardware/clevo-nl51ru.nix
./profiles/base.nix ./profiles/base.nix
./users ./users

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, pkgs-unstable, ... }:
{ {
services.pcscd.enable = true; services.pcscd.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs-unstable; [
eid-mw eid-mw
]; ];
} }

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, nixpkgs, ... }: { config, lib, pkgs, nixpkgs, pkgs-unstable, nixpkgs-unstable, ... }:
{ {
nix = { nix = {
@ -20,11 +20,11 @@
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
nixPath = [ nixPath = [
"nixpkgs=${nixpkgs}" "nixpkgs=${nixpkgs-unstable}"
]; ];
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs-unstable; [
wget wget
inetutils inetutils
openvpn openvpn
@ -47,9 +47,8 @@
lsof lsof
dnsutils dnsutils
]; ];
nixpkgs.config.allowUnfree = true;
fonts = { fonts = {
fonts = with pkgs; [ fonts = with pkgs-unstable; [
corefonts # Microsoft free fonts corefonts # Microsoft free fonts
meslo-lgs-nf meslo-lgs-nf
]; ];

View file

@ -3,15 +3,5 @@ final: prev:
{ {
ncmpcpp = prev.ncmpcpp.override { visualizerSupport = true; }; ncmpcpp = prev.ncmpcpp.override { visualizerSupport = true; };
firefox = prev.firefox.override { pkcs11Modules = [ prev.eid-mw ]; }; firefox = prev.firefox.override { pkcs11Modules = [ prev.eid-mw ]; };
exodus = prev.exodus.overrideDerivation (old: {
src = prev.fetchurl {
url = "https://downloads.exodus.com/releases/${old.pname}-linux-x64-${old.version}.zip";
sha256 = "sha256-rizVb3Yckd0ionRunT7VRq+wJvtNffkk3QzxTYQgvnY=";
};
unpackCmd = ''
${prev.unzip}/bin/unzip "$src" -x "Exodus*/lib*so"
'';
});
activitywatch-bin = prev.callPackage ./packages/activitywatch.nix { }; activitywatch-bin = prev.callPackage ./packages/activitywatch.nix { };
} }

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, pkgs-unstable, ... }:
{ {
environment.pathsToLink = [ "/share/zsh" ]; environment.pathsToLink = [ "/share/zsh" ];
@ -16,9 +16,6 @@
nixpkgs = { nixpkgs = {
overlays = [ (import ../overlay.nix { }) ]; overlays = [ (import ../overlay.nix { }) ];
config = {
allowUnfree = true;
};
}; };
xsession = { xsession = {
@ -242,7 +239,7 @@
}; };
}; };
packages = with pkgs; [ packages = with pkgs-unstable; [
haskellPackages.xmobar haskellPackages.xmobar
i3lock i3lock
ncmpcpp ncmpcpp
@ -275,7 +272,6 @@
portfolio portfolio
transmission-remote-gtk transmission-remote-gtk
monero-gui monero-gui
exodus
jdk jdk
jetbrains.idea-community jetbrains.idea-community