Compare commits
3 Commits
e381001f0a
...
40087d26be
Author | SHA1 | Date |
---|---|---|
Tim Van Baak | 40087d26be | |
Tim Van Baak | c9f65b73d7 | |
Tim Van Baak | 6b5dcb6e1d |
|
@ -12,6 +12,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
beatific.hostName = "backyard";
|
beatific.hostName = "backyard";
|
||||||
|
beatific.defaults.tvbSync = false;
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
beatific.hostName = "catacomb";
|
beatific.hostName = "catacomb";
|
||||||
|
beatific.defaults.tvbSync = false;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
loader = {
|
loader = {
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
beatific.hostName = "empyrean";
|
beatific.hostName = "empyrean";
|
||||||
beatific.isLighthouse = true;
|
beatific.isLighthouse = true;
|
||||||
|
beatific.defaults.tvbSync = false;
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
|
|
|
@ -62,17 +62,6 @@
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# tvb monopolizes the system syncthing for now. User services are harder to get working
|
|
||||||
# and nobody else uses imperium right now. In the future, rewriting the syncthing module
|
|
||||||
# to allow multiple instances is probably the right move.
|
|
||||||
services.syncthing = {
|
|
||||||
enable = true;
|
|
||||||
dataDir = "/home/tvb";
|
|
||||||
openDefaultPorts = true;
|
|
||||||
user = "tvb";
|
|
||||||
group = "tvb";
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value governs how some stateful data, like databases, are handled
|
# This value governs how some stateful data, like databases, are handled
|
||||||
# across different versions of NixOS. This should not be changed to a new
|
# across different versions of NixOS. This should not be changed to a new
|
||||||
# release unless the sysadmin has determined that no services would be
|
# release unless the sysadmin has determined that no services would be
|
||||||
|
|
|
@ -19,6 +19,7 @@ in
|
||||||
#system.stateVersion = "21.11";
|
#system.stateVersion = "21.11";
|
||||||
|
|
||||||
networking.hostName = "stagirite";
|
networking.hostName = "stagirite";
|
||||||
|
beatific.defaults.tvbSync = false;
|
||||||
|
|
||||||
fileSystems.winssh = {
|
fileSystems.winssh = {
|
||||||
device = "C:/Users/tvb/.ssh";
|
device = "C:/Users/tvb/.ssh";
|
||||||
|
|
|
@ -75,7 +75,6 @@
|
||||||
firefox
|
firefox
|
||||||
libreoffice
|
libreoffice
|
||||||
unzip
|
unzip
|
||||||
syncthing
|
|
||||||
mpv
|
mpv
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ in {
|
||||||
ssh = mkFlag "Default sshd settings";
|
ssh = mkFlag "Default sshd settings";
|
||||||
nebula = mkFlag "Default beatific nebula settings";
|
nebula = mkFlag "Default beatific nebula settings";
|
||||||
tvb = mkFlag "Default tvb account";
|
tvb = mkFlag "Default tvb account";
|
||||||
|
tvbSync = mkFlag "Configure system syncthing for tvb";
|
||||||
hosts = mkFlag "Default 10.22.20.* DNS host entries";
|
hosts = mkFlag "Default 10.22.20.* DNS host entries";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -91,7 +92,10 @@ in {
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
programs = {
|
programs = {
|
||||||
git.enable = true;
|
git = {
|
||||||
|
enable = true;
|
||||||
|
config.init.defaultBranch = "master";
|
||||||
|
};
|
||||||
htop.enable = true;
|
htop.enable = true;
|
||||||
};
|
};
|
||||||
# The nixpkgs default is "nano", so we go one priority higher
|
# The nixpkgs default is "nano", so we go one priority higher
|
||||||
|
@ -163,6 +167,20 @@ in {
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(mkIf cfg.defaults.tvbSync {
|
||||||
|
# I haven't gotten user services to work correctly yet,
|
||||||
|
# so for now, tvb monopolizes the system syncthing instance.
|
||||||
|
# Adding users in the future should probably involve multiple
|
||||||
|
# system services so as not to require login to sync.
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
dataDir = "/home/tvb";
|
||||||
|
openDefaultPorts = true;
|
||||||
|
user = "tvb";
|
||||||
|
group = "tvb";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
(mkIf cfg.defaults.hosts {
|
(mkIf cfg.defaults.hosts {
|
||||||
# Create *.home host entries for all the beatific members
|
# Create *.home host entries for all the beatific members
|
||||||
networking.hosts = {
|
networking.hosts = {
|
||||||
|
|
Loading…
Reference in New Issue