refactor: hosts/
This commit is contained in:
1 parent
cedfbd6ef6
commit
3e662f72f7
21 files changed
+140
-14
No files matched your search
@@ -0,0 +1,92 @@
|
||||
# This is your system's configuration file.
|
||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
repoDomain = "thearcticcircle.ddns.net";
|
||||
repoPath = "git/WinterEkisha/nix-config";
|
||||
repoBranch = "main";
|
||||
in
|
||||
{
|
||||
nix = {
|
||||
settings = {
|
||||
# Enable flakes and new 'nix' command
|
||||
experimental-features = "nix-command flakes";
|
||||
# Opinionated: disable global registry
|
||||
flake-registry = "";
|
||||
};
|
||||
# Opinionated: disable channels
|
||||
channel.enable = false;
|
||||
};
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
systemd.sleep.settings.Sleep = {
|
||||
AllowSuspend = "no";
|
||||
AllowHibernation = "no";
|
||||
AllowHybridSleep = "no";
|
||||
AllowSuspendThenHibernate = "no";
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /home/shared 0777 root root -"
|
||||
];
|
||||
|
||||
networking.firewall.enable = true;
|
||||
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
#flake = "git+https://${repoDomain}/${repoPath}?ref=${repoBranch}#${config.networking.hostName}"; #FIXME
|
||||
flake = "git+https://${repoDomain}/${repoPath}?ref=experimental#${config.networking.hostName}";
|
||||
flags = [
|
||||
"--refresh"
|
||||
];
|
||||
dates = "03:00";
|
||||
randomizedDelaySec = "30min";
|
||||
allowReboot = true;
|
||||
rebootWindow = {
|
||||
lower = "02:00";
|
||||
upper = "05:00";
|
||||
};
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
# --- File Manager ---
|
||||
xdg.mime.enable = true;
|
||||
services.tumbler.enable = true;
|
||||
services.gvfs.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# -- File manager --
|
||||
imagemagick
|
||||
poppler
|
||||
ffmpeg
|
||||
ffmpegthumbnailer
|
||||
file
|
||||
# --- General utils ---
|
||||
networkmanagerapplet
|
||||
lm_sensors
|
||||
ripgrep
|
||||
unzip
|
||||
];
|
||||
fonts.packages = [ ] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
||||
|
||||
# --- General Utils ---
|
||||
programs.vim.enable = true;
|
||||
programs.git.enable = true;
|
||||
}
|
||||
Reference in new issue
Block a user