Compare commits
3 commits
bef3d8d04a
...
bf378949d2
Author | SHA1 | Date | |
---|---|---|---|
bf378949d2 | |||
bd3c9bd5f2 | |||
453ec3c40d |
10 changed files with 39 additions and 37 deletions
|
@ -158,7 +158,7 @@
|
||||||
|
|
||||||
kilgharrah.deployment.targetHost = null; # disable remote deployment
|
kilgharrah.deployment.targetHost = null; # disable remote deployment
|
||||||
tohru.deployment.targetHost = null; # disable remote deployment
|
tohru.deployment.targetHost = null; # disable remote deployment
|
||||||
elucredassa.deployment.targetHost = "10.127.3.2"; # no fqdn yet
|
elucredassa.deployment.targetHost = "100.73.34.182"; # TODO: no fqdn yet
|
||||||
|
|
||||||
kilgharrah.imports = [ ./hosts/kilgharrah home-manager-unstable ];
|
kilgharrah.imports = [ ./hosts/kilgharrah home-manager-unstable ];
|
||||||
tohru.imports = [ ./hosts/tohru home-manager ];
|
tohru.imports = [ ./hosts/tohru home-manager ];
|
||||||
|
|
|
@ -12,6 +12,7 @@ in
|
||||||
"org/gnome/settings-daemon/plugins/color".night-light-enabled = true;
|
"org/gnome/settings-daemon/plugins/color".night-light-enabled = true;
|
||||||
"org/gnome/desktop/sound".event-sounds = false;
|
"org/gnome/desktop/sound".event-sounds = false;
|
||||||
"org/gnome/desktop/sound".allow-volume-above-100-percent = true;
|
"org/gnome/desktop/sound".allow-volume-above-100-percent = true;
|
||||||
|
"org/gnome/settings-daemon/plugins/power".power-saver-profile-on-low-battery = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -20,5 +21,6 @@ in
|
||||||
./mouse-touchpad.nix
|
./mouse-touchpad.nix
|
||||||
./multitasking.nix
|
./multitasking.nix
|
||||||
./shell.nix
|
./shell.nix
|
||||||
|
./wellbeing.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
8
home/qenya/dconf/wellbeing.nix
Normal file
8
home/qenya/dconf/wellbeing.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/desktop/screen-time-limits".daily-limit-enabled = true;
|
||||||
|
"org/gnome/desktop/break-reminders".selected-breaks = [ "eyesight" "movement" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./dconf
|
./dconf
|
||||||
|
./feishin.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
|
24
home/qenya/feishin.nix
Normal file
24
home/qenya/feishin.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ config, lib, pkgs, osConfig, ... }:
|
||||||
|
|
||||||
|
# Feishin ideally wants to see mpv at runtime, but this isn't catered for by
|
||||||
|
# the derivation in nixpkgs as it isn't strictly necessary.
|
||||||
|
# An easier way to do this would be to write mpv's full nix store path to
|
||||||
|
# Feishin's config. But Feishin has one JSON file for config and state, and
|
||||||
|
# we'd rather not overwrite the latter. Until and unless home-manager grows
|
||||||
|
# support for partially patching files, we live with this.
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
isGraphical = osConfig.services.xserver.enable;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.packages = mkIf isGraphical [
|
||||||
|
(pkgs.feishin.overrideAttrs (originalAttrs: {
|
||||||
|
buildInputs = originalAttrs.buildInputs ++ [ pkgs.mpv ];
|
||||||
|
postFixup = ''
|
||||||
|
${originalAttrs.postFixup or ""}
|
||||||
|
wrapProgram $out/bin/feishin --prefix PATH : ${lib.makeBinPath [ pkgs.mpv ]}
|
||||||
|
'';
|
||||||
|
}))
|
||||||
|
];
|
||||||
|
}
|
|
@ -23,7 +23,6 @@ in
|
||||||
] ++ optionals isGraphical [
|
] ++ optionals isGraphical [
|
||||||
bitwarden
|
bitwarden
|
||||||
discord
|
discord
|
||||||
feishin
|
|
||||||
gimp-with-plugins
|
gimp-with-plugins
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
tor-browser-bundle-bin
|
tor-browser-bundle-bin
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
};
|
};
|
||||||
# only allow remote connections from within birdsong vpn
|
# only allow remote connections from within birdsong vpn
|
||||||
# TODO: don't hardcode the IP addresses
|
# TODO: don't hardcode the IP addresses
|
||||||
|
# TODO: move to tailscale
|
||||||
authentication = pkgs.lib.mkOverride 10 ''
|
authentication = pkgs.lib.mkOverride 10 ''
|
||||||
#type database DBuser auth-method
|
#type database DBuser auth-method
|
||||||
local all all trust # used by nixos for local monitoring
|
local all all trust # used by nixos for local monitoring
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
||||||
./experiments/birdsong-dns.nix
|
|
||||||
# TODO: this breaks external IPv6 somehow
|
# TODO: this breaks external IPv6 somehow
|
||||||
# ./experiments/pennykettle.nix
|
# ./experiments/pennykettle.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.bind = {
|
|
||||||
# enable = true;
|
|
||||||
cacheNetworks = [ "10.127.0.0/16" "fd70:81ca:0f8f::/48" ];
|
|
||||||
forwarders = [ ];
|
|
||||||
listenOn = [ config.birdsong.hosts.yevaud.ipv4 ];
|
|
||||||
listenOnIpv6 = [ config.birdsong.hosts.yevaud.ipv6 ];
|
|
||||||
zones = {
|
|
||||||
"birdsong.internal" = {
|
|
||||||
master = true;
|
|
||||||
file = pkgs.writeText "birdsong.internal.zone" ''
|
|
||||||
$TTL 60
|
|
||||||
$ORIGIN birdsong.internal.
|
|
||||||
|
|
||||||
birdsong.internal. IN SOA ns.birdsong.internal. auto.qenya.tel. ( 2024122701 7200 3600 1209600 3600 )
|
|
||||||
birdsong.internal. IN NS ns.birdsong.internal.
|
|
||||||
|
|
||||||
yevaud.c.birdsong.internal. IN A 10.127.1.1
|
|
||||||
yevaud.c.birdsong.internal. IN AAAA fd70:81ca:0f8f:1::1
|
|
||||||
|
|
||||||
ns.birdsong.internal. IN A 10.127.1.1
|
|
||||||
ns.birdsong.internal. IN AAAA fd70:81ca:0f8f:1::1
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networking.resolvconf.useLocalResolver = false;
|
|
||||||
networking.firewall.allowedTCPPorts = [ 53 ];
|
|
||||||
networking.firewall.allowedUDPPorts = [ 53 ];
|
|
||||||
}
|
|
|
@ -35,7 +35,7 @@ in
|
||||||
|
|
||||||
nix.buildMachines =
|
nix.buildMachines =
|
||||||
(optional (elem "kalessin" cfg.builders) {
|
(optional (elem "kalessin" cfg.builders) {
|
||||||
hostName = config.birdsong.hosts."kalessin".ipv4;
|
hostName = "100.108.149.33"; # TODO: get tailscale internal DNS up
|
||||||
sshUser = "remotebuild";
|
sshUser = "remotebuild";
|
||||||
sshKey = cfg.keyFile;
|
sshKey = cfg.keyFile;
|
||||||
systems = [ "aarch64-linux" ];
|
systems = [ "aarch64-linux" ];
|
||||||
|
@ -43,7 +43,7 @@ in
|
||||||
supportedFeatures = [ "big-parallel" ];
|
supportedFeatures = [ "big-parallel" ];
|
||||||
})
|
})
|
||||||
++ (optional (elem "kilgharrah" cfg.builders) {
|
++ (optional (elem "kilgharrah" cfg.builders) {
|
||||||
hostName = config.birdsong.hosts."kilgharrah".ipv4;
|
hostName = "100.92.127.92"; # TODO: get tailscale internal DNS up
|
||||||
sshUser = "remotebuild";
|
sshUser = "remotebuild";
|
||||||
sshKey = cfg.keyFile;
|
sshKey = cfg.keyFile;
|
||||||
systems = [ "x86_64-linux" ];
|
systems = [ "x86_64-linux" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue