Move framework to unstable

This commit is contained in:
Natsu Kagami 2024-06-22 16:53:58 +02:00
parent 5f61631957
commit 99b653229e
Signed by: nki
GPG key ID: 55A032EB38B49ADB
4 changed files with 36 additions and 14 deletions

View file

@ -738,6 +738,26 @@
"type": "github" "type": "github"
} }
}, },
"home-manager-unstable": {
"inputs": {
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1719037157,
"narHash": "sha256-aOKd8+mhBsLQChCu1mn/W5ww79ta5cXVE59aJFrifM8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "cd886711998fe5d9ff7979fdd4b4cbd17b1f1511",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"kak-lsp": { "kak-lsp": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -854,11 +874,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1718806950, "lastModified": 1719007440,
"narHash": "sha256-E+W/kbedZAiOuPtT+KQRposLaXGDLd7lyK7oL3IH/5U=", "narHash": "sha256-ll9zg1P0W8cMk1Co1BOQOrICr9dDgUw+ZL3mGy5GnOg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "acb4f0e9bfa8ca2d6fca5e692307b5c994e7dbda", "rev": "e6d40db8924c3a663e1f76e0daed09510fea51c3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -975,11 +995,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1718606988, "lastModified": 1718983919,
"narHash": "sha256-pmjP5ePc1jz+Okona3HxD7AYT0wbrCwm9bXAlj08nDM=", "narHash": "sha256-+1xgeIow4gJeiwo4ETvMRvWoircnvb0JOt7NS9kUhoM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "38d3352a65ac9d621b0cd3074d3bef27199ff78f", "rev": "90338afd6177fc683a04d934199d693708c85a3b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1205,6 +1225,7 @@
"dtth-phanpy": "dtth-phanpy", "dtth-phanpy": "dtth-phanpy",
"flake-utils": "flake-utils_5", "flake-utils": "flake-utils_5",
"home-manager": "home-manager", "home-manager": "home-manager",
"home-manager-unstable": "home-manager-unstable",
"kak-lsp": "kak-lsp", "kak-lsp": "kak-lsp",
"kakoune": "kakoune", "kakoune": "kakoune",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",

View file

@ -9,6 +9,8 @@
darwin.inputs.nixpkgs.follows = "nixpkgs-unstable"; darwin.inputs.nixpkgs.follows = "nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.05"; home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager-unstable.url = "github:nix-community/home-manager";
home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs-unstable";
sops-nix.url = "github:Mic92/sops-nix"; sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs-unstable"; sops-nix.inputs.nixpkgs.follows = "nixpkgs-unstable";
sops-nix.inputs.nixpkgs-stable.follows = "nixpkgs"; sops-nix.inputs.nixpkgs-stable.follows = "nixpkgs";
@ -59,6 +61,8 @@
overlays = import ./overlay.nix inputs; overlays = import ./overlay.nix inputs;
lib = nixpkgs.lib; lib = nixpkgs.lib;
hmOf = nixpkgs: if nixpkgs == inputs.nixpkgs then home-manager else inputs.home-manager-unstable;
applyOverlays = { ... }: { applyOverlays = { ... }: {
nixpkgs.overlays = lib.mkBefore overlays; nixpkgs.overlays = lib.mkBefore overlays;
}; };
@ -164,10 +168,10 @@
]; ];
}; };
# framework configuration # framework configuration
nixosConfigurations."nki-framework" = nixpkgs.lib.nixosSystem rec { nixosConfigurations."nki-framework" = nixpkgs-unstable.lib.nixosSystem rec {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
(common-nixos nixpkgs) (common-nixos nixpkgs-unstable)
inputs.lanzaboote.nixosModules.lanzaboote inputs.lanzaboote.nixosModules.lanzaboote
inputs.nixos-hardware.nixosModules.framework-13-7040-amd inputs.nixos-hardware.nixosModules.framework-13-7040-amd
({ ... }: { ({ ... }: {
@ -179,7 +183,7 @@
}; };
}) })
./nki-framework/configuration.nix ./nki-framework/configuration.nix
home-manager.nixosModules.home-manager (hmOf nixpkgs-unstable).nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;

View file

@ -59,8 +59,6 @@ in
cinny-desktop cinny-desktop
gajim gajim
vivaldi vivaldi
# Note taking
logseq
# Audio # Audio
qpwgraph # Pipewire graph qpwgraph # Pipewire graph
@ -92,8 +90,8 @@ in
nki.programs.discord.enable = pkgs.stdenv.isx86_64; nki.programs.discord.enable = pkgs.stdenv.isx86_64;
nki.programs.discord.package = pkgs.vesktop.overrideAttrs (attrs: { nki.programs.discord.package = pkgs.vesktop.overrideAttrs (attrs: {
nativeBuildInputs = attrs.nativeBuildInputs ++ [ pkgs.nss_latest pkgs.makeWrapper ]; nativeBuildInputs = attrs.nativeBuildInputs ++ [ pkgs.nss_latest pkgs.makeWrapper ];
postInstall = '' postFixup = (attrs.postFixup or "") + ''
makeWrapper $out/bin/vesktop $out/bin/discord ln -s $out/bin/vesktop $out/bin/discord
''; '';
}); });

View file

@ -286,7 +286,6 @@ in
# Gaming! (not for ARM64) # Gaming! (not for ARM64)
programs.steam.enable = !pkgs.stdenv.isAarch64; programs.steam.enable = !pkgs.stdenv.isAarch64;
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
hardware.opengl.driSupport32Bit = !pkgs.stdenv.isAarch64; # For 32 bit applications hardware.opengl.driSupport32Bit = !pkgs.stdenv.isAarch64; # For 32 bit applications
## Services ## Services