From 55af7c915e99e61cb1d46d4dd1ea93721ee2a91a Mon Sep 17 00:00:00 2001 From: Kat Inskip Date: Sun, 29 Jan 2023 08:46:10 -0800 Subject: [PATCH] fix: missing files, nix.gc temp --- nixos/common/nix.nix | 2 +- nixos/i3.nix | 14 ++++++++++++++ nixos/motd.nix | 5 +++++ nixos/tz.nix | 12 ++++++++++++ nixos/x11.nix | 16 ++++++++++++++++ 5 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 nixos/i3.nix create mode 100644 nixos/motd.nix create mode 100644 nixos/tz.nix create mode 100644 nixos/x11.nix diff --git a/nixos/common/nix.nix b/nixos/common/nix.nix index 6f986fe6..06931c9a 100644 --- a/nixos/common/nix.nix +++ b/nixos/common/nix.nix @@ -7,7 +7,7 @@ in { }; nix.gc = { - automatic = mkDefault true; + automatic = mkDefault false; dates = mkDefault "weekly"; options = mkDefault "--delete-older-than 7d"; }; diff --git a/nixos/i3.nix b/nixos/i3.nix new file mode 100644 index 00000000..34c67fb2 --- /dev/null +++ b/nixos/i3.nix @@ -0,0 +1,14 @@ +_: let + super = "Mod4"; +in { + xsession.windowManager.i3 = { + enable = true; + config = { + modifier = super; + fonts = [ ]; + }; + + bars = [ + ]; + }; +} diff --git a/nixos/motd.nix b/nixos/motd.nix new file mode 100644 index 00000000..a303e45f --- /dev/null +++ b/nixos/motd.nix @@ -0,0 +1,5 @@ +_: { + programs.rust-motd = { + enable = true; + }; +} diff --git a/nixos/tz.nix b/nixos/tz.nix new file mode 100644 index 00000000..ab3cd276 --- /dev/null +++ b/nixos/tz.nix @@ -0,0 +1,12 @@ +_: { + services.tzupdate.enable = true; + systemd.timers.tzupdate = { + description = "Attempt to update timezone every hour"; + timerConfig = { + OnBootSec="1m"; + OnUnitInactiveSec="1h"; + Unit = "tzupdate.service"; + }; + wantedBy = [ "timers.target" ]; + }; +} diff --git a/nixos/x11.nix b/nixos/x11.nix new file mode 100644 index 00000000..e516853e --- /dev/null +++ b/nixos/x11.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ... }: { + services.xserver = { + enable = true; + autorun = false; + exportConfiguration = true; + in { + startx.enable = true; + }; + }; + + environment.systemPackages = with pkgs; [ + xorg.xinit + xsel + scrot + ]; +}