Merge branch 'main' of github.com:bloxx12/nichts

This commit is contained in:
Charlie Root 2024-09-26 00:35:14 +02:00
commit 90cc4f9ca9
4 changed files with 68 additions and 60 deletions

View file

@ -14,7 +14,6 @@
# Unstable nixpkgs baby! # Unstable nixpkgs baby!
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Lix, a faster nix fork. # Lix, a faster nix fork.
lix-module = { lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz"; url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";

View file

@ -20,6 +20,10 @@
printing.enable = true; printing.enable = true;
}; };
meta = {
users = ["vali"];
# mainUser = "vali";
};
modules = { modules = {
system = { system = {
hardware = { hardware = {
@ -43,6 +47,7 @@
eza.enable = true; eza.enable = true;
firefox.enable = true; firefox.enable = true;
spotify.enable = true; spotify.enable = true;
starship.enable = true;
zellij.enable = true; zellij.enable = true;
terminals = { terminals = {
foot.enable = true; foot.enable = true;

View file

@ -71,7 +71,9 @@ in {
sound = { sound = {
enable = mkEnableOption "sound related programs and audio-dependent programs"; enable = mkEnableOption "sound related programs and audio-dependent programs";
}; };
impermanence = {
enable = mkEnableOption "Enable Impermanence";
};
video = { video = {
enable = mkEnableOption "video drivers and programs that require a graphical user interface"; enable = mkEnableOption "video drivers and programs that require a graphical user interface";
nvidia = mkEnableOption "Nvidia graphics drivers"; nvidia = mkEnableOption "Nvidia graphics drivers";

View file

@ -4,7 +4,7 @@
lib, lib,
... ...
}: let }: let
inherit (lib) mkForce; inherit (lib) mkIf mkForce;
inherit (builtins) map; inherit (builtins) map;
cfg = config.modules.system.impermanence; cfg = config.modules.system.impermanence;
@ -12,6 +12,7 @@ in {
imports = [ imports = [
inputs.impermanence.nixosModules.impermanence inputs.impermanence.nixosModules.impermanence
]; ];
config = mkIf cfg.enable {
users = { users = {
mutableUsers = false; mutableUsers = false;
users = { users = {
@ -77,4 +78,5 @@ in {
type = "ed25519"; type = "ed25519";
} }
]; ];
};
} }