+1
-1
README.md
+1
-1
README.md
···
16
16
managed through nix or even run it.
17
17
18
18
* `mimas`: My currently used main host.
19
-
* `enceladeus`: A secondary laptop, rarely used but still updated.
19
+
* ~~`enceladeus`~~: A secondary laptop, rarely used but still updated.
20
20
* ~~`thetys`~~: A nixos VM solely used in the office for work related things, discontinued
21
21
* ~~`dione`~~: company provided android phone, discontinued
22
22
* `rhea`: self owned phone
-1
home/configurations/default.nix
-1
home/configurations/default.nix
-37
home/configurations/nmelzer_at_enceladeus.nix
-37
home/configurations/nmelzer_at_enceladeus.nix
···
1
-
{self, ...}: {
2
-
config,
3
-
pkgs,
4
-
lib,
5
-
...
6
-
}: {
7
-
config = {
8
-
nixpkgs.allowedUnfree = ["google-chrome" "vscode"];
9
-
10
-
nixpkgs.config.contentAddressedByDefault = false;
11
-
12
-
activeProfiles = ["browsing" "development"];
13
-
14
-
xsession.windowManager.awesome.autostart = [
15
-
"${pkgs.blueman}/bin/blueman-applet"
16
-
"${pkgs.networkmanagerapplet}/bin/nm-applet"
17
-
];
18
-
19
-
programs.emacs.enable = lib.mkForce false;
20
-
21
-
services.rustic = {
22
-
enable = true;
23
-
globs = let
24
-
mkHome = e: "${config.home.homeDirectory}/${e}";
25
-
mkIgnore = e: "!${e}";
26
-
27
-
home = map mkHome [".cache" ".cabal" ".cargo" ".emacs.d/eln-cache" ".emacs.d/.cache" ".gem" ".gradle" ".hex" ".kube" ".local" ".m2" ".minikube" ".minishift" ".mix" ".mozilla" "npm" ".opam" ".rancher" ".vscode-oss" "go/pkg"];
28
-
patterns = ["_build" "deps" "result" "target" ".elixir_ls" "ccls-cache" ".direnv"];
29
-
in
30
-
map mkIgnore (home ++ patterns);
31
-
oneFileSystem = true;
32
-
repo = "rest:https://restic.mimas.internal.nobbz.dev/nobbz";
33
-
};
34
-
35
-
home.packages = [pkgs.vscode];
36
-
};
37
-
}
-2
nixos/configurations/default.nix
-2
nixos/configurations/default.nix
-160
nixos/configurations/enceladeus.nix
-160
nixos/configurations/enceladeus.nix
···
1
-
# Edit this configuration file to define what should be installed on
2
-
# your system. Help is available in the configuration.nix(5) man page
3
-
# and in the NixOS manual (accessible by running ‘nixos-help’).
4
-
_: {
5
-
config,
6
-
pkgs,
7
-
lib,
8
-
...
9
-
}: {
10
-
nix.allowedUnfree = ["b43-firmware" "zerotierone"];
11
-
nixpkgs.config.contentAddressedByDefault = false;
12
-
nix.distributedBuilds = true;
13
-
# nix.enabledMachines = ["mimas"];
14
-
15
-
# nixpkgs.hostPlatform.gcc.arch = "core2";
16
-
# nixpkgs.hostPlatform.system = "x86_64-linux";
17
-
# nixpkgs.buildPlatform.gcc.arch = "haswell";
18
-
# nixpkgs.buildPlatform.system = "x86_64-linux";
19
-
20
-
nixpkgs.overlays = [
21
-
# (final: prev: {
22
-
# abseil-cpp = nixpkgs.legacyPackages.${final.system}.abseil-cpp;
23
-
# #bash = prev.bash.override { stdenv = nixpkgs.legacyPackages.${final.system}.stdenv; };
24
-
# })
25
-
];
26
-
27
-
services.lvm.boot.thin.enable = true;
28
-
boot.kernelPackages = pkgs.linuxPackages_6_6; # WiFi kernel module doesn't build on newer kernels
29
-
services.lvm.dmeventd.enable = true;
30
-
boot.blacklistedKernelModules = ["rtl8xxxu"];
31
-
boot.extraModulePackages = with config.boot.kernelPackages; [
32
-
rtl8192eu
33
-
];
34
-
35
-
boot.kernel.sysctl = {
36
-
"vm.swappiness" = 75;
37
-
};
38
-
39
-
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
40
-
# Per-interface useDHCP will be mandatory in the future, so this generated config
41
-
# replicates the default behaviour.
42
-
networking.networkmanager.enable = true;
43
-
networking.networkmanager.unmanaged = [
44
-
"mac:0c:60:76:3f:c1:31"
45
-
];
46
-
networking.enableB43Firmware = true;
47
-
48
-
networking.useDHCP = false;
49
-
networking.interfaces.enp0s25.useDHCP = false;
50
-
networking.interfaces.wlan0.useDHCP = false;
51
-
networking.hostId = "62a007d6"; # required by ZFS
52
-
53
-
# Configure network proxy if necessary
54
-
# networking.proxy.default = "http://user:password@proxy:port/";
55
-
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
56
-
57
-
# Select internationalisation properties.
58
-
i18n.defaultLocale = "en_US.UTF-8";
59
-
console = {
60
-
font = "Lat2-Terminus16";
61
-
keyMap = "de";
62
-
};
63
-
64
-
# Set your time zone.
65
-
time.timeZone = "Europe/Berlin";
66
-
67
-
# List packages installed in system profile. To search, run:
68
-
# $ nix search wget
69
-
environment.systemPackages = with pkgs; [
70
-
unison # Sadly required on the host for unison copy to work :(
71
-
nix-output-monitor
72
-
];
73
-
74
-
# Some programs need SUID wrappers, can be configured further or are
75
-
# started in user sessions.
76
-
programs.gnupg.agent = {
77
-
enable = true;
78
-
enableSSHSupport = true;
79
-
};
80
-
programs.zsh.enable = true;
81
-
82
-
# List services that you want to enable:
83
-
84
-
# Enable the OpenSSH daemon.
85
-
services.openssh.enable = true;
86
-
87
-
# Open ports in the firewall.
88
-
networking.firewall.allowedTCPPorts = [9002];
89
-
# networking.firewall.allowedUDPPorts = [ ... ];
90
-
# Or disable the firewall altogether.
91
-
# networking.firewall.enable = false;
92
-
networking.firewall.trustedInterfaces = [
93
-
"ztrta4jrxj"
94
-
];
95
-
96
-
# Enable CUPS to print documents.
97
-
# services.printing.enable = true;
98
-
99
-
# Enable pulse compat.
100
-
services.pipewire.pulse.enable = true;
101
-
102
-
# Enable the X11 windowing system.
103
-
services.xserver.enable = true;
104
-
services.xserver.xkb.layout = "de";
105
-
106
-
# Enable touchpad support.
107
-
services.libinput.enable = true;
108
-
109
-
# Enable the KDE Desktop Environment.
110
-
services.xserver.displayManager.lightdm.enable = true;
111
-
services.xserver.desktopManager.plasma5.enable = false;
112
-
services.xserver.windowManager.awesome.enable = true;
113
-
114
-
virtualisation.docker.enable = false;
115
-
116
-
# Define a user account. Don't forget to set a password with ‘passwd’.
117
-
users.users = {
118
-
nmelzer = {
119
-
isNormalUser = true;
120
-
shell = pkgs.zsh;
121
-
extraGroups = ["wheel" "networkmanager"];
122
-
};
123
-
124
-
aroemer = {
125
-
isNormalUser = true;
126
-
};
127
-
128
-
proemer = {
129
-
isNormalUser = true;
130
-
};
131
-
};
132
-
133
-
services.prometheus = {
134
-
exporters = {
135
-
node = {
136
-
enable = true;
137
-
enabledCollectors = ["systemd"];
138
-
port = 9002;
139
-
};
140
-
};
141
-
};
142
-
143
-
# This value determines the NixOS release with which your system is to be
144
-
# compatible, in order to avoid breaking some software such as database
145
-
# servers. You should change this only after NixOS release notes say you
146
-
# should.
147
-
system.stateVersion = "19.09"; # Did you read the comment?
148
-
149
-
security.sudo.extraRules = [
150
-
{
151
-
commands = [
152
-
{
153
-
command = "/run/current-system/sw/bin/nixos-rebuild";
154
-
options = ["NOPASSWD"];
155
-
}
156
-
];
157
-
groups = ["wheel"];
158
-
}
159
-
];
160
-
}
-51
nixos/configurations/hyperion.nix
-51
nixos/configurations/hyperion.nix
···
1
-
_: {pkgs, ...}: {
2
-
nix.allowedUnfree = ["zerotierone"];
3
-
4
-
networking.hostName = "hyperion";
5
-
networking.networkmanager.enable = true;
6
-
7
-
time.timeZone = "Europe/Berlin";
8
-
9
-
i18n.defaultLocale = "en_US.UTF-8";
10
-
11
-
services.xserver.enable = true;
12
-
13
-
# Enable the LXQT Desktop Environment.
14
-
services.xserver.displayManager.lightdm.enable = true;
15
-
services.xserver.desktopManager.lxqt.enable = true;
16
-
services.xserver.desktopManager.plasma5.enable = true;
17
-
services.xserver.desktopManager.enlightenment.enable = true;
18
-
19
-
services.qemuGuest.enable = true;
20
-
services.spice-vdagentd.enable = true;
21
-
22
-
services.openssh.enable = true;
23
-
24
-
services.acpid.enable = true;
25
-
26
-
# Configure keymap in X11
27
-
services.xserver.xkb = {
28
-
layout = "de";
29
-
variant = "";
30
-
};
31
-
32
-
# Configure console keymap
33
-
console.keyMap = "de";
34
-
35
-
services.printing.enable = true;
36
-
37
-
programs.zsh.enable = true;
38
-
39
-
users.users.nmelzer = {
40
-
isNormalUser = true;
41
-
description = "Norbert Melzer";
42
-
extraGroups = ["networkmanager" "wheel"];
43
-
shell = pkgs.zsh;
44
-
packages = [
45
-
pkgs.firefox
46
-
# thunderbird
47
-
];
48
-
};
49
-
50
-
system.stateVersion = "22.11";
51
-
}