-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_machine.example.nix
87 lines (79 loc) · 2.66 KB
/
custom_machine.example.nix
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{ config, lib, pkgs, modulesPath, ... }:
let
vars = import ./custom_vars.nix;
in
{
imports = [
./genoc/hardware/vmware.nix # choose between vmware.nix or baremetal.nix
./genoc/locale/ptbr.nix # define locale
./genoc/ui/kde.nix # can be KDE, Gnome, LXQt etc.
./genoc/boot/grub.nix # can be systemd-boot
./genoc/boot/plymouth.nix # splash screen during log
# optional:
./genoc/backup/tarsnap.nix
./genoc/dev/vscode.nix
./genoc/dev/docker.nix
./genoc/dev/git.nix
./genoc/ui/fonts.nix
./genoc/cryptocurrency/bitcoin.nix
./genoc/cryptocurrency/liquid.nix
#./genoc/security/tpm2.nix
#./genoc/cryptocurrency/electrum.nix
#./genoc/hardware/coldcard.nix
];
# File Systems
#fileSystems."/home_RENAME" =
# { device = "/dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
# fsType = "ext4";
# options = [ "noatime" ];
# };
#
#fileSystems."/wa" =
# { device = "/dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
# fsType = "ext4";
# options = [ "noatime" ];
# };
# Swap
#swapDevices =
# [ { device = "/dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; }
# ];
# Cron Jobs
#services.cron = {
# enable = true;
# systemCronJobs = [
# "0 16,20 * * * root ${vars.homeDirectory}/make-backup.sh > ${vars.homeDirectory}/last-backup.log 2>&1"
# ];
#};
environment.systemPackages = lib.mkMerge [
(with pkgs; [
# custom pkgs
# Custom menu items
# (writeTextFile {
# name = "sqlitestudio.desktop";
# destination = "/share/applications/sqlitestudio.desktop";
# text = ''
# [Desktop Entry]
# Type=Application
# Name=SQLite Studio
# Comment=SQLite Studio
# Exec=${vars.homeDirectory}/app/SQLiteStudio/start.sh
# Icon=${vars.homeDirectory}/app/SQLiteStudio/ico.png
# Terminal=false
# Categories=Utility;Development;
# '';
# })
])
(import ./genoc/pkgs/comm.nix { pkgs = pkgs; })
(import ./genoc/pkgs/cryptocurrency.nix { pkgs = pkgs; })
(import ./genoc/pkgs/dev.nix { pkgs = pkgs; })
(import ./genoc/pkgs/editors.nix { pkgs = pkgs; })
#(import ./genoc/pkgs/fun.nix { pkgs = pkgs; })
(import ./genoc/pkgs/latex.nix { pkgs = pkgs; })
(import ./genoc/pkgs/media.nix { pkgs = pkgs; })
(import ./genoc/pkgs/network_tools.nix { pkgs = pkgs; })
(import ./genoc/pkgs/nix.nix { pkgs = pkgs; })
(import ./genoc/pkgs/tools.nix { pkgs = pkgs; })
#(import ./genoc/pkgs/security.nix { pkgs = pkgs; })
(import ./genoc/pkgs/sys_tools.nix { pkgs = pkgs; })
];
}