-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
87 lines (76 loc) · 2.08 KB
/
Copy pathflake.nix
File metadata and controls
87 lines (76 loc) · 2.08 KB
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 = "cabang's personal NixOS setup";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-alien.url = "github:thiagokokada/nix-alien";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
renix.url = "github:C0DK/renix";
renix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{
self,
home-manager,
nixpkgs,
nix-alien,
sops-nix,
...
}@inputs:
let
system = "x86_64-linux";
hostname = "cwbfw";
user = "cwb";
email = "c@cwb.dk";
fullName = "Casper Weiss Bang";
nixOsVersion = "25.11";
repoPath = "/home/${user}/Documents/os";
in
{
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit hostname;
inherit user;
inherit nixOsVersion;
inherit fullName;
inherit email;
inherit repoPath;
};
modules = [
sops-nix.nixosModules.sops
{
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
inputs.nix-alien.overlays.default
];
}
home-manager.nixosModules.home-manager
inputs.renix.nixosModules.default
inputs.renix.nixosModules.dev-core
inputs.renix.nixosModules.dotnet
inputs.renix.nixosModules.go
inputs.renix.nixosModules.js
inputs.renix.nixosModules.rust
{
renix = {
inherit user;
flakePath = repoPath;
git = {
name = fullName;
inherit email;
signingKey = "2E1DC0FF50920EDDDE1757D9881239F715822BB7";
};
nushell.setAsDefaultShell = true;
};
}
./system.nix
./tools.nix
./modules
];
};
};
}