-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
87 lines (75 loc) · 2.32 KB
/
flake.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
{
description = "Systemconfiguration flake";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Helper wrapper to fix OpenGL kerfuffle when running glx apps on non-nixos
nixgl.url = "github:nix-community/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, nixgl }:
let
system = "x86_64-linux";
pkgs = import nixpkgs{
inherit system;
config = { allowUnfree = true; };
overlays = [
nixgl.overlay
];
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
nixos-workstation = lib.nixosSystem {
inherit system;
modules = [
./machines/workstation/configuration.nix
./modules/system/nvidia
./modules/system/docker
./modules/system/file-manager-support
# Needs to be included on system level due to optional cuda Support in nixpkgs.config
./modules/system/blender
./modules/system/printing
./modules/system/nix-storage-optimisation
./modules/system/ausweisapp-firewall
./modules/system/cuda-maintainers-cache
];
};
};
homeConfigurations.joel = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home.nix
./modules/user/nixGL
./modules/user/kubernetes
./modules/user/xmonad
./modules/user/picom
./modules/user/social
./modules/user/gtk
./modules/user/kitty
./modules/user/betterlockscreen
./modules/user/rofi
./modules/user/file-manager
./modules/user/vlc
./modules/user/chromium
./modules/user/dropbox
./modules/user/vscode
./modules/user/blugon
./modules/user/basic-tools
./modules/user/libation
./modules/user/auto-start
./modules/user/blueman-autostart
./modules/user/deadd
./modules/user/ausweisapp
./modules/user/keepassxc
./modules/user/libreoffice
./modules/user/gwe
./modules/user/xdg-portal
./modules/user/email
./modules/user/zsh
];
extraSpecialArgs = { theming = import themes/tokyonight.nix; };
};
};
}