blob: 2645b80c1675c5407f07b9fcfcedeff0d5f7549d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# This file contains the configuration for my Macbook Pro.
{ pkgs, inputs, lib, ... }:
{
# Specify the location of this configuration file. Very meta.
# environment.darwinConfig = inputs.self + "/hosts/muhammed/configuration.nix";
# Use the Nix daemon.
services.nix-daemon.enable = true;
# Set up main account.
users.users.linus = {
description = "Personal user account";
home = "/Users/linus";
};
# Don't request password for running pmset.
environment.etc."sudoers.d/10-unauthenticated-commands".text =
let
commands = [
"/usr/bin/pmset"
];
in
''
%admin ALL=(ALL:ALL) NOPASSWD: ${builtins.concatStringsSep ", " commands}
'';
# Backwards compatability. Check `darwin-rebuild changelog` before bumping.
system.stateVersion = 4;
}
|