This repository was archived by the owner on Nov 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
145 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ pkgs, ... }: | ||
{ | ||
imports = [ | ||
./hardware-configuration.nix | ||
./networking.nix | ||
|
||
../../modules/options.nix | ||
|
||
../../modules/attic-client.nix | ||
../../modules/cache.nix | ||
../../modules/comin.nix | ||
../../modules/locales.nix | ||
../../modules/os.nix | ||
../../modules/ssh.nix | ||
../../modules/users.nix | ||
../../modules/vm.nix | ||
|
||
./modules/boot.nix | ||
./modules/rustdesk.nix | ||
]; | ||
|
||
primaryUser = "ajgon"; | ||
currentHostname = "rustdesk"; | ||
|
||
# system packages | ||
environment.systemPackages = with pkgs; [ | ||
git | ||
vim | ||
]; | ||
|
||
system.stateVersion = "24.05"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Do not modify this file! It was generated by ‘nixos-generate-config’ | ||
# and may be overwritten by future invocations. Please make changes | ||
# to /etc/nixos/configuration.nix instead. | ||
{ lib, modulesPath, ... }: | ||
|
||
{ | ||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; | ||
|
||
boot = { | ||
initrd = { | ||
availableKernelModules = [ | ||
"ata_piix" | ||
"uhci_hcd" | ||
"virtio_pci" | ||
"virtio_scsi" | ||
"sd_mod" | ||
"sr_mod" | ||
]; | ||
kernelModules = [ ]; | ||
}; | ||
kernelModules = [ "kvm-intel" ]; | ||
extraModulePackages = [ ]; | ||
}; | ||
|
||
fileSystems."/" = { | ||
device = "/dev/disk/by-label/NIXROOT"; | ||
fsType = "ext4"; | ||
}; | ||
|
||
swapDevices = [ { device = "/dev/disk/by-label/NIXSWAP"; } ]; | ||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking | ||
# (the default) this is the recommended approach. When using systemd-networkd it's | ||
# still possible to use this option, but it's recommended to use it in conjunction | ||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. | ||
networking.useDHCP = lib.mkDefault true; | ||
# networking.interfaces.ens18.useDHCP = lib.mkDefault true; | ||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
_: { | ||
boot.loader = { | ||
grub.enable = true; | ||
grub.device = "/dev/sda"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ config, ... }: | ||
{ | ||
services.rustdesk-server = { | ||
enable = true; | ||
openFirewall = true; | ||
relayIP = "relay.${config.remoteDomain}"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ config, lib, ... }: | ||
{ | ||
networking = { | ||
hostName = config.currentHostname; | ||
networkmanager.enable = true; | ||
enableIPv6 = false; | ||
useDHCP = lib.mkForce true; | ||
extraHosts = '' | ||
10.200.1.2 attic.${config.remoteDomain} | ||
''; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters