added unstable branch

This commit is contained in:
Osman Faruk Bayram 2024-10-16 23:40:34 +03:00
parent 9dd8c3d993
commit 5697c0a054
3 changed files with 35 additions and 7 deletions

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, pkgs-unstable, ... }:
{
imports =
@ -153,6 +153,7 @@
python312Packages.matplotlib
]))
# fcitx5-mosc
pkgs-unstable.ani-cli
];
# Some programs need SUID wrappers, can be configured further or are

19
flake.lock generated
View file

@ -16,9 +16,26 @@
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1728888510,
"narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
}
},

View file

@ -3,16 +3,26 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }:
let
lib = nixpkgs.lib;
in {
outputs = inputs@{
self,
nixpkgs,
nixpkgs-unstable,
...
}: {
nixosConfigurations = {
tartarus = lib.nixosSystem {
tartarus = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [ ./configuration.nix ];
specialArgs = {
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
# revision = self.shortRev or self.dirtyShortRev or self.lastModified or "unknown";
};
};