This commit is contained in:
Charlie Root 2024-09-25 18:04:42 +02:00
commit ff9f3aa198
5 changed files with 68 additions and 59 deletions

View file

@ -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";

View file

@ -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;

View file

@ -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";

View file

@ -22,6 +22,7 @@
.emacsWithPackages (epkgs:
with epkgs; [
vterm
treesit-grammars.with-all-grammars
]);
in {
config = mkIf cfg.enable {

View file

@ -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 = true;
users = {
@ -76,4 +77,5 @@ in {
type = "ed25519";
}
];
};
}