forked from pbek/nixcfg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
109 lines (105 loc) · 3.17 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
description = "mkocher's machines";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
# nixinate.url = "github:matthewcroughan/nixinate";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# robotnix.url = "github:danielfullmer/robotnix";
pia.url = "github:pia-foss/manual-connections";
pia.flake = false;
catppuccin.url = "github:catppuccin/starship";
catppuccin.flake = false;
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
plasma-manager = {
url = "github:nix-community/plasma-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
};
outputs =
{
self,
# , nixinate
home-manager,
nixpkgs,
nixpkgs-stable,
pia,
catppuccin,
disko,
nixos-hardware,
plasma-manager,
# , robotnix
...
}@inputs:
let
system = "x86_64-linux";
overlays-nixpkgs = final: prev: {
stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
unstable = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
};
commonServerModules = [
home-manager.nixosModules.home-manager
{ }
(
{ ... }:
{
nixpkgs.overlays = [ overlays-nixpkgs ];
}
)
];
commonDesktopModules = [
home-manager.nixosModules.home-manager
{ home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ]; }
(
{ ... }:
{
nixpkgs.overlays = [ overlays-nixpkgs ];
}
)
];
in
{
# config = nixpkgs.config.systems.${builtins.currentSystem}.config;
# hostname = config.networking.hostName;
# nixosModules = import ./modules { inherit (nixpkgs) lib; };
commonArgs = {
userLogin = "omega";
userNameLong = "Patrizio Bekerle";
userNameShort = "Patrizio";
userEmail = "[email protected]";
useSecrets = true;
termFontSize = 12.0;
waylandSupport = true; # Wayland is the default, otherwise use X11
usePlasma6 = true; # Plasma 6 is the default, otherwise use Plasma 5
useStableJetbrains = false; # Set this to true to use stable versions
};
nixosConfigurations = {
# TU ThinkBook Manuel
dp02 = nixpkgs.lib.nixosSystem {
inherit system;
modules = commonDesktopModules ++ [
./hosts/dp02/configuration.nix
./hosts/dp02/hardware-configuration.nix
];
specialArgs = self.commonArgs // {
inherit inputs;
userLogin = "mkocher";
userNameLong = "Manuel Kocher";
userNameShort = "Manuel";
userEmail = "[email protected]";
useSecrets = false;
};
};
};
};
}