···88 baseHmConfig = import ../../../shared/home-manager/main.nix {
99 inherit config pkgs lib home-manager;
1010 };
1111+1212+ # localhost + local network in HaliliFam WiFi network
1313+ baseHostsFile = with import ../../shared/hosts-file.nix; {
1414+ "127.0.0.1" = localhost ++ [
1515+ "nixos-portable.local"
1616+ "nixos-portable.tailnet"
1717+ "nixos-portable.fawn-cod.ts.net"
1818+ ];
1919+ } // localNetwork.halilifam;
2020+2121+ # tailnet, blocking ads via blackholing to 0.0.0.0, etc.
2222+ extraHosts = with import ../../shared/hosts-file.nix;
2323+ tailnet;
2424+2525+ # them merge them all together
2626+ hostsFile = baseHostsFile // extraHosts;
1127in
1228{
1329 imports =
1414- [ # Include the results of the hardware scan.
1515- #../../../shared/desktop/bluetooth.nix
1616- ../../../shared/desktop/firewall.nix
3030+ [
3131+ ../../../shared/meta.nix
3232+ ../../../shared/desktop/base.nix
1733 ../../../shared/desktop/kde-plasma.nix
1818- ../../../shared/flatpak.nix
1919- ../../../shared/gnupg.nix
2020- ../../../shared/locale.nix
2121- ../../../shared/meta-configs.nix
2222- ../../../shared/networking.nix
2323- #../../../shared/server/ssh.nix
3434+ ../../../shared/server/ssh.nix
2435 ../../../shared/server/tailscale.nix
2525- ../../../shared/systemd.nix
2626- ../../../shared/yubikey.nix
2736 ../../../shared/server/devenv.nix
2828- ../../../shared/1password.nix
2929- ../../../shared/desktop/firefox.nix
3030- ../../../shared/shells/bash.nix
3131- ../../../shared/server/cockpit.nix
3737+ #../../../shared/server/cockpit.nix
3238 ./hardware-configuration.nix
3339 ];
3440···3642 boot.loader.systemd-boot.enable = true;
3743 boot.loader.efi.canTouchEfiVariables = true;
38443939- networking.hostName = "nixos-portable"; # Define your hostname.
4040-4141- # Enable networking
4242- networking.networkmanager.enable = true;
4343-4444- # Set your time zone.
4545- time.timeZone = "Asia/Manila";
4646-4747- # Select internationalisation properties.
4848- i18n.defaultLocale = "en_PH.UTF-8";
4949-5050- i18n.extraLocaleSettings = {
5151- LC_ADDRESS = "en_PH.UTF-8";
5252- LC_IDENTIFICATION = "en_PH.UTF-8";
5353- LC_MEASUREMENT = "en_PH.UTF-8";
5454- LC_MONETARY = "en_PH.UTF-8";
5555- LC_NAME = "en_PH.UTF-8";
5656- LC_NUMERIC = "en_PH.UTF-8";
5757- LC_PAPER = "en_PH.UTF-8";
5858- LC_TELEPHONE = "en_PH.UTF-8";
5959- LC_TIME = "en_PH.UTF-8";
4545+ networking = {
4646+ hostName = "nixos-portable"; # Define your hostname.
4747+ hosts = hostsFile;
4848+ networkmanager.enable = true; # manage networking via networkmanager
6049 };
61506251 # Enable the X11 windowing system.
···10998 extraGroups = [ "networkmanager" "wheel" ];
11099 };
111100112112- # Install firefox.
113113- programs.firefox.enable = true;
114114-115115- # Allow unfree packages
116116- nixpkgs.config.allowUnfree = true;
117117-118118- # List packages installed in system profile. To search, run:
119119- # $ nix search wget
120120- environment.systemPackages = with pkgs; [
121121- wget
122122- dig
123123- btop
124124- htop
125125- icu
126126- thunderbird
127127- google-chrome
128128- microsoft-edge
129129- kdePackages.kate
130130- libreoffice-qt6-fresh
131131- hunspell
132132- hunspellDicts.en_US
133133- gnupg
134134- gpg-tui
135135- gpgme
136136- byobu
137137- tmux
138138- android-tools
139139- adbtuifm
140140- ];
141141-142142- # Some programs need SUID wrappers, can be configured further or are
143143- # started in user sessions.
144144- # programs.mtr.enable = true;
145145- # programs.gnupg.agent = {
146146- # enable = true;
147147- # enableSSHSupport = true;
148148- # };
149149-150150- # List services that you want to enable:
151151-152152- # Enable the OpenSSH daemon.
153153- # services.openssh.enable = true;
154154-155155- # Open ports in the firewall.
156156- # networking.firewall.allowedTCPPorts = [ ... ];
157157- # networking.firewall.allowedUDPPorts = [ ... ];
158158- # Or disable the firewall altogether.
159159- # networking.firewall.enable = false;
160160-161161- # This value determines the NixOS release from which the default
162162- # settings for stateful data, like file locations and database versions
163163- # on your system were taken. It‘s perfectly fine and recommended to leave
164164- # this value at the release version of the first install of this system.
165165- # Before changing this value read the documentation for this option
166166- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
167167- system.stateVersion = "25.05"; # Did you read the comment?
168168-101101+ system.nixos.tags = [ "portable-configs" "portable-amd64" ];
169102}
+8-21
hosts/stellapent-cier/configuration.nix
···1414 ];
1515 } // localNetwork.halilifam;
16161717- # tailnet, blackholing to 0.0.0.0, etc.
1717+ # tailnet, blocking ads via blackholing to 0.0.0.0, etc.
1818 extraHosts = with import ../../shared/hosts-file.nix;
1919 tailnet;
2020+2121+ # them merge them all together
2022 hostsFile = baseHostsFile // extraHosts;
2123in
2224{
2325 imports =
2426 [
2727+ ../../shared/meta.nix
2528 ../../shared/desktop/base.nix
2629 ../../shared/desktop/kde-plasma.nix
2727- ../../shared/flatpak.nix
2828- ../../shared/gnupg.nix
2929- ../../shared/locale.nix
3030- ../../shared/meta-configs.nix
3131- ../../shared/networking.nix
3230 ../../shared/server/ssh.nix
3331 ../../shared/server/tailscale.nix
3434- ../../shared/systemd.nix
3535- ../../shared/yubikey.nix
3632 ../../shared/server/devenv.nix
3737- ../../shared/1password.nix
3838- ../../shared/shells/bash.nix
3933 ../../shared/server/cockpit.nix
4034 ];
4135···107101 # old HP laptop my overseas Filipino dad gave me in 2024.
108102 users.users.gildedguy = {
109103 isNormalUser = true;
110110- description = "Gildedguy (Michael Moy)"; # We're not impersonating the animatior here.
104104+ description = "Gildedguy (Michael Moy)"; # We're not impersonating the animatior here lol.
111105 extraGroups = [ "networkmanager" "wheel" "docker"];
112106 openssh = {
113107 authorizedKeys.keys = with import ../../shared/ssh-keys.nix; [
···117111 rp.gildedguy
118112 ];
119113 };
120120- #home-manager = {
121121- # enable = true;
122122- #};
114114+ linger = true;
115115+ uid = 1000;
123116 };
124117 home-manager.users.gildedguy = import ./users/gildedguy.nix;
125118 #programs.home-manager.enable = true; # allow home-manager to manage itself
···136129 # started in user sessions.
137130 programs.mtr.enable = true;
138131139139- # This value determines the NixOS release from which the default
140140- # settings for stateful data, like file locations and database versions
141141- # on your system were taken. It‘s perfectly fine and recommended to leave
142142- # this value at the release version of the first install of this system.
143143- # Before changing this value read the documentation for this option
144144- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
145145- system.stateVersion = "25.05"; # Did you read the comment?
132132+ system.nixos.tags = [ "laptop" "homelab" ];
146133}
···11# An static list of host entries to be used in networking.hosts configuration.
22+# You probably want to use this inside a let...in block, see the example
33+# at ../hosts/stellapent-cier/configuration.nix for the hints.
24{
35 localhost = [
46 "localhost"
···1315 "stellapent.local"
1416 ];
1517 "192.168.254.179" = [
1616- "rpi-aether"
1718 "rpi-aether.local"
1819 "aether.local"
1920 ];