-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.nix
executable file
·87 lines (61 loc) · 3.52 KB
/
configuration.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
{ config, pkgs, options, lib, ... }:
#---------------------------------------------------------------------
# Tolga Erok
# 17/10/23
# My personal NIXOS KDE configuration
#
# ¯\_(ツ)_/¯
# ███▄ █ ██▓ ▒██ ██▒ ▒█████ ██████
# ██ ▀█ █ ▓██▒ ▒▒ █ █ ▒░ ▒██▒ ██▒ ▒██ ▒
# ▓██ ▀█ ██▒ ▒██▒ ░░ █ ░ ▒██░ ██▒ ░ ▓██▄
# ▓██▒ ▐▌██▒ ░██░ ░ █ █ ▒ ▒██ ██░ ▒ ██▒
# ▒██░ ▓██░ ░██░ ▒██▒ ▒██▒ ░ ████▓▒░ ▒██████▒▒
# ░ ▒░ ▒ ▒ ░▓ ▒▒ ░ ░▓ ░ ░ ▒░▒░▒░ ▒ ▒▓▒ ▒ ░
# ░ ░░ ░ ▒░ ▒ ░ ░░ ░▒ ░ ░ ▒ ▒░ ░ ░▒ ░ ░
# ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░
# ░ ░ ░ ░ ░ ░ ░
#
#---------------------------------------------------------------------
let
# Auto HOST chooser based on device product name
# Terminal: cat /sys/devices/virtual/dmi/id/product_name
#---------------------------------------------------------------------
importfile = ( if builtins.readFile "/sys/devices/virtual/dmi/id/product_name" == "HP EliteBook Folio 9470m\n" then
./machines/LAPTOPS/HP-i7-Eilte-Folio-9470M/HP-FOLIO-configuration.nix
else if builtins.readFile "/sys/devices/virtual/dmi/id/product_name" == "HP EliteDesk 800 G4 SFF\n" then
./machines/DESKTOPS/HP-i7-4770-EliteDesk-G1-800-SFF/EliteDesk-800-G4-configuration.nix
else if builtins.readFile "/sys/devices/virtual/dmi/id/product_name" == "HP EliteDesk 800 G1 SFF\n" then
./machines/DESKTOPS/HP-i7-4770-EliteDesk-G1-800-SFF/EliteDesk-800-G1-configuration.nix
else if builtins.readFile "/sys/devices/virtual/dmi/id/product_name" == "HP EliteDesk 8200\n" then
./machines/DESKTOPS/HP-i7-2660-EilteDesk-8200-SFF/EliteDesk-8200-configuration.nix
else if builtins.readFile "/sys/devices/virtual/dmi/id/product_name" == "HP ProBook\n" then
machines/LAPTOPS/HP-i5-ProBook-6460b/configuration.nix
else if builtins.readFile "/sys/devices/virtual/dmi/id/product_name" == "Sony Vaio\n" then
machines/LAPTOPS/Sony-Vaio-i3-330M/configuration.nix
else if builtins.readFile "/sys/devices/virtual/dmi/id/product_name" == "Latitude E6540\n" then
machines/LAPTOPS/Dell-Latitude-E6540/Dell-E6540-configuration.nix
else if builtins.readFile "/sys/devices/virtual/dmi/id/product_name" == "MacBookPro9,2\n" then
machines/LAPTOPS/Apple-MacBookPro-9.2/Apple-configuration.nix
else
# Manually symlink host/machine
# ---------------------------------------------
/etc/nixos/manual.nix
);
in
{
imports = [
# call attribute thats declared above
# ---------------------------------------------
importfile
# Choose DE, still under review
# ---------------------------------------------
# ./core/services/xserver/cinnamon/cinnamon.nix
# ./core/services/xserver/gnome/gnome.nix
# ./core/services/xserver/hyperland/hyperland.nix
# ./core/services/xserver/i3/i3.nix
# ./core/services/xserver/sway/sway.nix
./core/services/xserver/kde/kde.nix
];
# fix clock to be compatible with windows
time.hardwareClockInLocalTime = true;
}