1
- { config , pkgs , self , ... } :
1
+ {
2
+ config ,
3
+ pkgs ,
4
+ self ,
5
+ ...
6
+ } :
2
7
3
8
{
4
9
imports = [
10
15
settings . experimental-features = "nix-command flakes" ;
11
16
} ;
12
17
18
+ nixpkgs . config . allowUnfree = true ;
19
+
13
20
age . secrets . acmclock = {
14
21
file = ../enc.env ;
15
22
} ;
19
26
boot . loader . efi . canTouchEfiVariables = true ;
20
27
21
28
networking . hostName = "acmclock" ; # Define your hostname.
22
- # Pick only one of the below networking options.
23
- # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
24
29
networking . networkmanager . enable = true ; # Easiest to use and most distros use this by default.
25
30
26
31
# Set your time zone.
27
32
time . timeZone = "America/Chicago" ;
28
33
29
-
30
- # Enable sound.
31
- # sound.enable = true;
32
34
hardware . pulseaudio . enable = true ;
33
35
34
- # Enable touchpad support (enabled default in most desktopManager).
35
- # services.xserver.libinput.enable = true;
36
-
37
36
# Define a user account. Don't forget to set a password with ‘passwd’.
38
37
users . users . acmrunner = {
39
38
isNormalUser = true ;
40
39
extraGroups = [ "docker" ] ; # Enable ‘sudo’ for the user.
41
40
packages = with pkgs ; [ ] ;
42
41
} ;
42
+
43
43
users . users . acmadmin = {
44
44
isNormalUser = true ;
45
45
extraGroups = [
57
57
} ;
58
58
} ;
59
59
60
- services . cage = let
61
- run = pkgs . writeScriptBin "rotator" ''
62
- #!/usr/bin/env bash
63
- ret=1;
64
- while test $ret -ne 0; do
65
- ${ pkgs . wlr-randr } /bin/wlr-randr --output DP-3 --transform=90
66
- ret=$?
67
- done
68
- ${ pkgs . google-chrome } /bin/google-chrome-stable --disable-http-cache --simulate-outdated-no-au="01 Jan 2099" --kiosk "http://localhost:8080";
60
+ services . cage =
61
+ let
62
+ run = pkgs . writeScriptBin "rotator" ''
63
+ #!/usr/bin/env bash
64
+ ret=1;
65
+ while test $ret -ne 0; do
66
+ ${ pkgs . wlr-randr } /bin/wlr-randr --output DP-3 --transform=90
67
+ ret=$?
68
+ done
69
+ ${ pkgs . google-chrome } /bin/google-chrome-stable --disable-http-cache --simulate-outdated-no-au="01 Jan 2099" --kiosk "http://localhost:8080";
69
70
'' ;
70
- in {
71
- enable = true ;
72
- program = "${ run } /bin/rotator" ;
73
- user = "acmrunner" ;
74
- # extraArguments = [ "-r" ];
75
- } ;
76
-
77
- # wait for network and DNS
78
- # systemd.services."cage-tty1" = {
79
- # wants = [
80
- # "graphical.target"
81
- # ];
82
- # wantedBy = [];
83
- # before = [];
84
-
85
- # # Restart cage if it closes
86
- # serviceConfig = {
87
- # Restart = "always";
88
- # };
89
- # unitConfig = {
90
- # StartLimitBurst = 10;
91
- # };
92
- # };
71
+ in
72
+ {
73
+ enable = true ;
74
+ program = "${ run } /bin/rotator" ;
75
+ user = "acmrunner" ;
76
+ } ;
93
77
94
78
systemd . services . "acmclock" = {
95
79
name = "acmclock.service" ;
101
85
} ;
102
86
enable = true ;
103
87
} ;
104
-
105
88
106
89
# List packages installed in system profile. To search, run:
107
90
# $ nix search wget
115
98
self . inputs . agenix . packages . "${ system } " . default
116
99
] ;
117
100
118
- # Some programs need SUID wrappers, can be configured further or are
119
- # started in user sessions.
120
- # programs.mtr.enable = true;
121
- programs . gnupg . agent = {
122
- enable = true ;
123
- enableSSHSupport = true ;
124
- } ;
125
101
126
102
# Install additional fonts for emojis and other utilized fonts
127
103
fonts . packages = with pkgs ; [
@@ -130,11 +106,6 @@ in {
130
106
noto-fonts-emoji
131
107
] ;
132
108
133
- # Installing Docker
134
- virtualisation . docker . enable = true ;
135
-
136
- # List services that you want to enable:
137
-
138
109
# Enable the OpenSSH daemon.
139
110
services . openssh . enable = true ;
140
111
@@ -144,17 +115,5 @@ in {
144
115
# Or disable the firewall altogether.
145
116
# networking.firewall.enable = false;
146
117
147
- # Copy the NixOS configuration file and link it from the resulting system
148
- # (/run/current-system/configuration.nix). This is useful in case you
149
- # accidentally delete configuration.nix.
150
- # system.copySystemConfiguration = true;
151
-
152
- # This value determines the NixOS release from which the default
153
- # settings for stateful data, like file locations and database versions
154
- # on your system were taken. It‘s perfectly fine and recommended to leave
155
- # this value at the release version of the first install of this system.
156
- # Before changing this value read the documentation for this option
157
- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
158
118
system . stateVersion = "22.11" ; # Did you read the comment?
159
- nixpkgs . config . allowUnfree = true ;
160
119
}
0 commit comments