move nix config to flake

This commit is contained in:
veneficium 2025-11-10 19:44:52 +01:00
parent b4bcf9f5d7
commit 8e7eea9b80
3 changed files with 18 additions and 10 deletions

View file

@ -1,6 +1,23 @@
{
description = "Veneficium's amazing fantastic mindblowingly stupid nixOS configuration! :3";
nixConfig = {
experimental-features = "nix-command flakes";
substitute = "true";
extra-substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
"https://niri.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964="
];
cores = 0;
max-jobs = 2;
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

View file

@ -19,15 +19,6 @@
users.extraGroups.vboxusers.members = [ "fedfer" ];
nix.settings = {
substituters = [
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
stylix.enable = true;
stylix.autoEnable = true;
stylix = {

View file

@ -1,2 +1,2 @@
#! /bin/sh
sudo nixos-rebuild switch --flake .
sudo nixos-rebuild switch --accept-flake-config --flake .