Fix errors so system builds

This commit is contained in:
Julia Lange 2024-04-09 00:00:42 -07:00
parent 73142b1bdf
commit a43df02076
9 changed files with 45 additions and 66 deletions

View file

@ -1,12 +1,16 @@
{ inputs, config, pkgs, lib, ... }:
{
options = {
hyprland.enable = lib.mkEnableOption "Enables hyprland";
};
imports = [
inputs.hyprland.nixosModules.default
];
config = lib.mkIf config.hyprland.enable {
imports = [ inputs.hyprland.nixosModules.default ];
programs.hyprland.enable = true;
nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];

View file

@ -5,7 +5,7 @@
wireless.enable = lib.mkEnableOption "Enables wireless";
};
config = lib.mkIf confi.wireless.enable {
config = lib.mkIf config.wireless.enable {
networking.wireless = {
enable = true;
userControlled = {

View file

@ -13,9 +13,9 @@
alsa.enable = false;
alsa.support32Bit = false;
pulse.enable = true;
environment.systemPackages = with pkgs; [
pulsemixer
];
};
environment.systemPackages = with pkgs; [
pulsemixer
];
};
}

View file

@ -10,5 +10,5 @@
environment.systemPackages = with pkgs; [
polkit-kde-agent
];
}
};
}

View file

@ -5,8 +5,9 @@ let rootPath = ./.; in
sops-nix.enable = lib.mkEnableOption "Enables nix-sops for secret management";
};
imports = [ inputs.sops-nix.nixosModules.sops ];
config = lib.mkIf config.sops-nix.enable {
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
defaultSopsFile = rootPath + "secrets.yaml";

View file

@ -4,7 +4,7 @@
options = {
user.name = lib.mkOption { default = "pan"; };
user.timezone = lib.mkOption { default = "America/Los_Angeles"; };
font.extraFonts = lib.mkOption { default = []; };
system.extraFonts = lib.mkOption { default = []; };
};
config = {