-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
272 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
config, | ||
lib, | ||
namespace, | ||
... | ||
}: | ||
let | ||
inherit (lib.${namespace}) enabled; | ||
in | ||
{ | ||
elyth = { | ||
user = { | ||
enable = true; | ||
inherit (config.snowfallorg.user) name; | ||
}; | ||
|
||
programs = { | ||
graphical = { | ||
apps = { | ||
thunderbird = enabled; | ||
zathura = enabled; | ||
}; | ||
|
||
bars = { | ||
waybar = { | ||
fullSizeOutputs = [ | ||
"DP-1" | ||
"HDMI-A-1" | ||
]; | ||
condensedOutputs = [ "DP-3" ]; | ||
}; | ||
}; | ||
|
||
browsers = { | ||
firefox = { | ||
gpuAcceleration = true; | ||
hardwareDecoding = true; | ||
}; | ||
}; | ||
|
||
wms = { | ||
hyprland = { | ||
enable = true; | ||
# enableDebug = true; | ||
|
||
appendConfig = # bash | ||
'' | ||
exec-once = hyprctl setcursor ${config.${namespace}.theme.gtk.cursor.name} ${ | ||
builtins.toString config.${namespace}.theme.gtk.cursor.size | ||
} | ||
''; | ||
|
||
}; | ||
}; | ||
}; | ||
|
||
terminal = { | ||
tools = { | ||
git = { | ||
enable = true; | ||
}; | ||
|
||
run-as-service = enabled; | ||
ssh = enabled; | ||
}; | ||
}; | ||
}; | ||
|
||
services = { | ||
hyprpaper = enabled; | ||
|
||
rnnoise = enabled; | ||
|
||
sops = { | ||
enable = true; | ||
defaultSopsFile = lib.snowfall.fs.get-file "secrets/gwen/default.yaml"; | ||
sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ]; | ||
}; | ||
}; | ||
|
||
system = { | ||
xdg = enabled; | ||
}; | ||
|
||
suites = { | ||
art = enabled; | ||
business = enabled; | ||
common = enabled; | ||
desktop = enabled; | ||
|
||
development = { | ||
enable = true; | ||
|
||
dockerEnable = true; | ||
gameEnable = true; | ||
kubernetesEnable = true; | ||
nixEnable = true; | ||
sqlEnable = true; | ||
}; | ||
|
||
emulation = enabled; | ||
games = enabled; | ||
music = enabled; | ||
networking = enabled; | ||
photo = enabled; | ||
social = enabled; | ||
video = enabled; | ||
}; | ||
|
||
theme.stylix = enabled; | ||
}; | ||
|
||
home.stateVersion = "24.05"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
config, | ||
lib, | ||
options, | ||
namespace, | ||
... | ||
}: | ||
let | ||
inherit (lib) types mkAliasDefinitions; | ||
inherit (lib.${namespace}) mkOpt; | ||
in | ||
{ | ||
|
||
options.${namespace}.home = with types; { | ||
configFile = | ||
mkOpt attrs { } | ||
"A set of files to be managed by home-manager's <option>xdg.configFile</option>."; | ||
extraOptions = mkOpt attrs { } "Options to pass directly to home-manager."; | ||
file = mkOpt attrs { } "A set of files to be managed by home-manager's <option>home.file</option>."; | ||
}; | ||
|
||
config = { | ||
${namespace}.home.extraOptions = { | ||
home.file = mkAliasDefinitions options.${namespace}.home.file; | ||
home.stateVersion = config.system.stateVersion; | ||
xdg.configFile = mkAliasDefinitions options.${namespace}.home.configFile; | ||
xdg.enable = true; | ||
}; | ||
|
||
home-manager = { | ||
# enables backing up existing files instead of erroring if conflicts exist | ||
backupFileExtension = "hm.old"; | ||
|
||
useGlobalPkgs = true; | ||
useUserPackages = true; | ||
|
||
users.${config.${namespace}.user.name} = mkAliasDefinitions options.${namespace}.home.extraOptions; | ||
|
||
verbose = true; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
config, | ||
lib, | ||
namespace, | ||
... | ||
}: | ||
let | ||
inherit (lib) mkDefault mkIf mkForce; | ||
|
||
cfg = config.${namespace}.nix; | ||
in | ||
{ | ||
imports = [ (lib.snowfall.fs.get-file "modules/shared/nix/default.nix") ]; | ||
|
||
config = mkIf cfg.enable { | ||
documentation = { | ||
man.generateCaches = mkDefault true; | ||
|
||
nixos = { | ||
enable = true; | ||
|
||
options = { | ||
warningsAreErrors = true; | ||
splitBuild = true; | ||
}; | ||
}; | ||
}; | ||
|
||
nix = { | ||
# make builds run with low priority so my system stays responsive | ||
daemonCPUSchedPolicy = "batch"; | ||
daemonIOSchedClass = "idle"; | ||
daemonIOSchedPriority = 7; | ||
|
||
gc = { | ||
dates = "Sun *-*-* 03:00"; | ||
}; | ||
|
||
optimise = { | ||
automatic = true; | ||
dates = [ "04:00" ]; | ||
}; | ||
|
||
settings = { | ||
# bail early on missing cache hits | ||
connect-timeout = 5; | ||
experimental-features = mkForce "cgroups nix-command flakes"; | ||
keep-going = true; | ||
use-cgroups = true; | ||
|
||
substituters = [ | ||
"https://anyrun.cachix.org" | ||
"https://hyprland.cachix.org" | ||
"https://nixpkgs-wayland.cachix.org" | ||
]; | ||
trusted-public-keys = [ | ||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s=" | ||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" | ||
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA=" | ||
]; | ||
}; | ||
|
||
# flake-utils-plus | ||
generateNixPathFromInputs = true; | ||
generateRegistryFromInputs = true; | ||
linkInputs = true; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
_: { | ||
networking = { | ||
networkmanager = { | ||
ensureProfiles = { | ||
profiles = { | ||
dib = { | ||
ipv4 = { | ||
dns-search = "~doitbestcorp.com"; | ||
method = "auto"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
systemd = { | ||
network.networks = { | ||
# wired interfaces e.g. ethernet | ||
"30-network-defaults-wired" = { | ||
matchConfig.Name = "en* | eth* | usb*"; | ||
networkConfig = { | ||
# Address = "192.168.1.3/24"; | ||
# Gateway = "192.168.1.1"; | ||
DHCP = "ipv4"; | ||
MulticastDNS = true; | ||
# IPv6AcceptRA = true; | ||
# IPForward = "yes"; | ||
# IPMasquerade = "no"; | ||
}; | ||
}; | ||
}; | ||
|
||
services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug"; | ||
}; | ||
} |