-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal-flake.nix
49 lines (42 loc) · 1.31 KB
/
local-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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
microdesktop = {
url = "github:Avunu/nixos-micro-desktop";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, microdesktop }:
let
hostName = "myhostname"; # Replace with desired hostname
in
{
nixosConfigurations = {
"${hostName}" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
microdesktop.nixosModules.microDesktop
./hardware-configuration.nix
({ config, lib, pkgs, ... }: {
networking.hostName = "${hostName}";
time.timeZone = "America/New_York"; # Replace with your timezone
i18n.defaultLocale = "en_US.UTF-8"; # Replace with your locale
users.users.myuser = {
# Replace 'myuser' with desired username
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
};
environment.systemPackages = with pkgs; [
# Add any non-flatpak software you want on this particular machine
# for example, insync:
insync
insync-emblem-icons
insync-nautilus
];
system.stateVersion = "24.05";
})
];
};
};
};
}