mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
feat: minor modules updates
This commit is contained in:
parent
1a899dc894
commit
89cefcd610
7 changed files with 17 additions and 10 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
options.fireproof.base.defaults = {
|
options.fireproof.base.defaults = {
|
||||||
terminal = lib.mkOption {
|
terminal = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
|
default = "ghostty";
|
||||||
description = "The terminal to use";
|
description = "The terminal to use";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "The primary username for the machine";
|
description = "The primary username for the machine";
|
||||||
};
|
};
|
||||||
|
work.enable = lib.mkEnableOption "Enable work-related applications and tools";
|
||||||
|
dev.enable = lib.mkEnableOption "Enable development tools and applications";
|
||||||
hardware = {
|
hardware = {
|
||||||
battery = lib.mkOption {
|
battery = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,5 @@ _: {
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings.auto-optimise-store = true;
|
nix.settings.auto-optimise-store = true;
|
||||||
|
nix.optimise.automatic = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{config, ...}: {
|
{config, pkgs, ...}: {
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
|
@ -8,7 +8,9 @@
|
||||||
config.fireproof.username
|
config.fireproof.username
|
||||||
];
|
];
|
||||||
|
|
||||||
experimental-features = "nix-command flakes";
|
experimental-features = ["nix-command" "flakes"];
|
||||||
|
warn-dirty = false;
|
||||||
|
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"https://install.determinate.systems"
|
"https://install.determinate.systems"
|
||||||
|
|
@ -19,4 +21,7 @@
|
||||||
"cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM="
|
"cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Make 'nix repl' have all the nixpkgs available
|
||||||
|
environment.systemPackages = [pkgs.nixpkgs-fmt];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
{lib, ...}: {
|
_: {
|
||||||
options.fireproof = {
|
|
||||||
work.enable = lib.mkEnableOption "Enable work-related applications and tools";
|
|
||||||
dev.enable = lib.mkEnableOption "Enable development tools and applications";
|
|
||||||
};
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./fish/default.nix
|
./fish/default.nix
|
||||||
./claude.nix
|
./claude.nix
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
_: {
|
_: {
|
||||||
options.fireproof.base = {};
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
|
./hardware.nix
|
||||||
./hosts.nix
|
./hosts.nix
|
||||||
./keyd.nix
|
./keyd.nix
|
||||||
./wsl.nix
|
./wsl.nix
|
||||||
|
|
|
||||||
4
modules/system/hardware.nix
Normal file
4
modules/system/hardware.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
_: {
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue