Merge branch 'main' of github.com:bloxx12/nichts
This commit is contained in:
commit
90cc4f9ca9
4 changed files with 68 additions and 60 deletions
|
@ -14,7 +14,6 @@
|
|||
|
||||
# Unstable nixpkgs baby!
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
# Lix, a faster nix fork.
|
||||
lix-module = {
|
||||
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
printing.enable = true;
|
||||
};
|
||||
|
||||
meta = {
|
||||
users = ["vali"];
|
||||
# mainUser = "vali";
|
||||
};
|
||||
modules = {
|
||||
system = {
|
||||
hardware = {
|
||||
|
@ -43,6 +47,7 @@
|
|||
eza.enable = true;
|
||||
firefox.enable = true;
|
||||
spotify.enable = true;
|
||||
starship.enable = true;
|
||||
zellij.enable = true;
|
||||
terminals = {
|
||||
foot.enable = true;
|
||||
|
|
|
@ -71,7 +71,9 @@ in {
|
|||
sound = {
|
||||
enable = mkEnableOption "sound related programs and audio-dependent programs";
|
||||
};
|
||||
|
||||
impermanence = {
|
||||
enable = mkEnableOption "Enable Impermanence";
|
||||
};
|
||||
video = {
|
||||
enable = mkEnableOption "video drivers and programs that require a graphical user interface";
|
||||
nvidia = mkEnableOption "Nvidia graphics drivers";
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkForce;
|
||||
inherit (lib) mkIf mkForce;
|
||||
inherit (builtins) map;
|
||||
|
||||
cfg = config.modules.system.impermanence;
|
||||
|
@ -12,6 +12,7 @@ in {
|
|||
imports = [
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
];
|
||||
config = mkIf cfg.enable {
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users = {
|
||||
|
@ -77,4 +78,5 @@ in {
|
|||
type = "ed25519";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue