diff --git a/.vscode/settings.json b/.vscode/settings.json index 78449ba..3bc63d9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "yaml.schemas": { - "https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json": "file:///home/notoh/snowflake/.woodpecker" - } -} \ No newline at end of file + "yaml.schemas": { + "https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json": "file:///home/notoh/snowflake/.woodpecker" + } +} diff --git a/flake.nix b/flake.nix index ba807e9..4106d0f 100755 --- a/flake.nix +++ b/flake.nix @@ -1,51 +1,6 @@ { description = "snowflake"; - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - hyprland.url = "github:hyprwm/Hyprland"; - ags.url = "github:Aylur/ags"; - nix-gaming.url = "github:fufexan/nix-gaming"; - attic.url = "github:zhaofengli/attic"; - nur.url = "github:nix-community/NUR"; - yazi.url = "github:sxyazi/yazi"; - helix.url = "github:helix-editor/helix"; - pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; - wezterm.url = "github:notohh/wezterm?dir=nix&ref=nix-add-overlay"; - hypridle.url = "github:hyprwm/hypridle"; - hyprlock.url = "github:hyprwm/hyprlock"; - hyprpicker.url = "github:hyprwm/hyprpicker"; - hyprcursor.url = "github:hyprwm/hyprcursor"; - xdg-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland"; - nixos-hardware.url = "github:NixOS/nixos-hardware/master"; - atuin.url = "github:atuinsh/atuin"; - flake-parts.url = "github:hercules-ci/flake-parts"; - hyprland-plugins = { - url = "github:hyprwm/hyprland-plugins"; - inputs.hyprland.follows = "hyprland"; - }; - deploy-rs = { - url = "github:serokell/deploy-rs"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - sops-nix = { - url = "github:Mic92/sops-nix"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - home-manager = { - url = "github:nix-community/home-manager"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - nix-index-database = { - url = "github:Mic92/nix-index-database"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - anyrun = { - url = "github:Kirottu/anyrun"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - }; - outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} { imports = [ @@ -66,7 +21,6 @@ excludes = ["flake.lock"]; hooks = { stylua.enable = true; - eslint.enable = true; statix.enable = true; alejandra.enable = true; deadnix = { @@ -76,6 +30,9 @@ prettier = { enable = true; files = "\\.(js|ts|md|json)$"; + settings = { + trailing-comma = "none"; + }; }; }; }; @@ -94,4 +51,51 @@ formatter = pkgs.alejandra; }; }; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + hyprland.url = "github:hyprwm/Hyprland"; + hypridle.url = "github:hyprwm/hypridle"; + hyprlock.url = "github:hyprwm/hyprlock"; + hyprpicker.url = "github:hyprwm/hyprpicker"; + hyprcursor.url = "github:hyprwm/hyprcursor"; + xdg-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland"; + hyprland-plugins = { + url = "github:hyprwm/hyprland-plugins"; + inputs.hyprland.follows = "hyprland"; + }; + + ags.url = "github:Aylur/ags"; + nix-gaming.url = "github:fufexan/nix-gaming"; + attic.url = "github:zhaofengli/attic"; + nur.url = "github:nix-community/NUR"; + yazi.url = "github:sxyazi/yazi"; + helix.url = "github:helix-editor/helix"; + pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; + wezterm.url = "github:notohh/wezterm?dir=nix&ref=nix-add-overlay"; + nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + atuin.url = "github:atuinsh/atuin"; + flake-parts.url = "github:hercules-ci/flake-parts"; + deploy-rs = { + url = "github:serokell/deploy-rs"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + sops-nix = { + url = "github:Mic92/sops-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nix-index-database = { + url = "github:Mic92/nix-index-database"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + anyrun = { + url = "github:Kirottu/anyrun"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; } diff --git a/home/default.nix b/home/default.nix index 4e36a7c..941ecc6 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,10 +1,45 @@ -{inputs, ...}: { +{pkgs, ...}: { systemd.user.startServices = "sd-switch"; programs.home-manager.enable = true; + imports = [ + ./programs/editors/helix + ./programs/terminal/lazygit + ./programs/terminal/neofetch + ./programs/terminal/nushell + ./programs/terminal/yazi + ./programs/terminal/atuin.nix + ./programs/terminal/bat.nix + ./programs/terminal/starship.nix + ./programs/terminal/zoxide.nix + ./programs/direnv.nix + ./programs/git.nix + ]; + home = { username = "notoh"; homeDirectory = "/home/notoh"; + packages = with pkgs; [ + wget + croc + eza + eva + fd + du-dust + bottom + gnupg + ripgrep + lazydocker + yt-dlp + nfs-utils + dig + tailspin + nitch + unzip + unrar + p7zip + procs + ]; stateVersion = "23.05"; }; } diff --git a/home/profiles/ame/default.nix b/home/profiles/ame/default.nix index f35923c..1e357b0 100644 --- a/home/profiles/ame/default.nix +++ b/home/profiles/ame/default.nix @@ -1,10 +1,28 @@ -{pkgs, ...}: { +{ + inputs, + pkgs, + ... +}: { imports = [ - ../common.nix + inputs.hyprland.homeManagerModules.default + inputs.anyrun.homeManagerModules.default + inputs.ags.homeManagerModules.default + inputs.nix-index-database.hmModules.nix-index + ../../services + ../../programs/ags + ../../programs/anyrun + ../../programs/browsers/firefox + ../../programs/browsers/chromium + ../../programs/terminal/wezterm + ../../programs/terminal/zellij + ../../programs/gtk.nix + ../../programs/media/cava.nix + ../../programs/mako.nix + ../../programs/media/spotify-player.nix + ../../programs/media/zathura.nix ]; home.packages = with pkgs; [ - chromium discord pavucontrol imv @@ -20,7 +38,7 @@ wl-clipboard swww hyprpicker - (libsForQt5.callPackage ../../pkgs/chatterino7 {}) + (libsForQt5.callPackage ../../../pkgs/chatterino7 {}) ]; programs.ssh = { enable = true; diff --git a/home/profiles/common.nix b/home/profiles/common.nix deleted file mode 100644 index bbcd352..0000000 --- a/home/profiles/common.nix +++ /dev/null @@ -1,37 +0,0 @@ -{pkgs, ...}: { - imports = [ - ../programs/helix - ../programs/lazygit - ../programs/neofetch - ../programs/nushell - ../programs/yazi - ../programs/atuin.nix - ../programs/bat.nix - ../programs/direnv.nix - ../programs/git.nix - ../programs/starship.nix - ../programs/zoxide.nix - ]; - - home.packages = with pkgs; [ - wget - croc - eza - eva - fd - du-dust - bottom - gnupg - ripgrep - lazydocker - yt-dlp - nfs-utils - dig - tailspin - nitch - unzip - unrar - p7zip - procs - ]; -} diff --git a/home/profiles/default/default.nix b/home/profiles/default/default.nix index c74e826..f7e9be4 100644 --- a/home/profiles/default/default.nix +++ b/home/profiles/default/default.nix @@ -1,5 +1,4 @@ { imports = [ - ../common.nix ]; } diff --git a/home/profiles/tsuki/default.nix b/home/profiles/tsuki/default.nix index ac32ea7..93d6ade 100644 --- a/home/profiles/tsuki/default.nix +++ b/home/profiles/tsuki/default.nix @@ -10,25 +10,24 @@ inputs.hypridle.homeManagerModules.default inputs.hyprlock.homeManagerModules.default inputs.nix-index-database.hmModules.nix-index - ../common.nix ../../services ../../programs/ags ../../programs/anyrun - ../../programs/firefox - ../../programs/wezterm - ../../programs/zellij + ../../programs/browsers/firefox + ../../programs/browsers/chromium + ../../programs/terminal/wezterm + ../../programs/terminal/zellij ../../programs/gtk.nix - ../../programs/cava.nix + ../../programs/media/cava.nix ../../programs/mako.nix - ../../programs/spotify-player.nix - ../../programs/zathura.nix + ../../programs/media/spotify-player.nix + ../../programs/media/zathura.nix ../../wayland/hyprland ../../wayland/services/hypridle.nix ../../wayland/programs/hyprlock.nix ]; home.packages = with pkgs; [ - chromium discord signal-desktop thunderbird diff --git a/home/programs/ags/config/import.js b/home/programs/ags/config/import.js index e98e5db..44f5ba2 100644 --- a/home/programs/ags/config/import.js +++ b/home/programs/ags/config/import.js @@ -19,5 +19,5 @@ export { SystemTray, Utils, Variable, - Widget, + Widget }; diff --git a/home/programs/ags/config/js/widgets/images/image.js b/home/programs/ags/config/js/widgets/images/image.js index 4bde732..f4f6b67 100644 --- a/home/programs/ags/config/js/widgets/images/image.js +++ b/home/programs/ags/config/js/widgets/images/image.js @@ -2,8 +2,7 @@ import { Widget } from "../../../import.js"; const nixosLogo = () => Widget.Icon({ - icon: - "/home/notoh/snowflake/home/ags/config/js/widgets/images/static/nixos.png", + icon: "/home/notoh/snowflake/home/ags/config/js/widgets/images/static/nixos.png" }); export { nixosLogo }; diff --git a/home/programs/ags/default.nix b/home/programs/ags/default.nix index fb2c4c9..f35ce77 100644 --- a/home/programs/ags/default.nix +++ b/home/programs/ags/default.nix @@ -3,7 +3,7 @@ config, ... }: let - configDir = "/home/notoh/snowflake/homeo/programs/ags/config"; + configDir = "/home/notoh/snowflake/home/programs/ags/config"; in { programs.ags = { enable = true; diff --git a/home/programs/browsers/chromium/default.nix b/home/programs/browsers/chromium/default.nix new file mode 100644 index 0000000..b4ea73f --- /dev/null +++ b/home/programs/browsers/chromium/default.nix @@ -0,0 +1,5 @@ +_: { + programs.chromium = { + enable = true; + }; +} diff --git a/home/programs/firefox/default.nix b/home/programs/browsers/firefox/default.nix similarity index 100% rename from home/programs/firefox/default.nix rename to home/programs/browsers/firefox/default.nix diff --git a/home/programs/browsers/firefox/user.js/.prettierrc.json b/home/programs/browsers/firefox/user.js/.prettierrc.json new file mode 100644 index 0000000..36b3563 --- /dev/null +++ b/home/programs/browsers/firefox/user.js/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "trailingComma": "none" +} diff --git a/home/programs/firefox/user.js/betterfox.js b/home/programs/browsers/firefox/user.js/betterfox.js similarity index 90% rename from home/programs/firefox/user.js/betterfox.js rename to home/programs/browsers/firefox/user.js/betterfox.js index b9997a6..2375563 100644 --- a/home/programs/firefox/user.js/betterfox.js +++ b/home/programs/browsers/firefox/user.js/betterfox.js @@ -12,11 +12,11 @@ * "Ad meliora" * * version: 119 * * url: https://github.com/yokoffing/Betterfox * -****************************************************************************/ + ****************************************************************************/ /**************************************************************************** * SECTION: FASTFOX * -****************************************************************************/ + ****************************************************************************/ /** GENERAL ***/ user_pref("content.notify.interval", 100000); @@ -60,11 +60,17 @@ user_pref("dom.security.sanitizer.enabled", true); /**************************************************************************** * SECTION: SECUREFOX * -****************************************************************************/ + ****************************************************************************/ /** TRACKING PROTECTION ***/ user_pref("browser.contentblocking.category", "strict"); -user_pref("urlclassifier.trackingSkipURLs", "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com"); -user_pref("urlclassifier.features.socialtracking.skipURLs", "*.instagram.com, *.twitter.com, *.twimg.com"); +user_pref( + "urlclassifier.trackingSkipURLs", + "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com" +); +user_pref( + "urlclassifier.features.socialtracking.skipURLs", + "*.instagram.com, *.twitter.com, *.twimg.com" +); user_pref("network.cookie.sameSite.noneRequiresSecure", true); user_pref("browser.download.start_downloads_in_tmp_dir", true); user_pref("browser.helperApps.deleteTempFileOnExit", true); @@ -137,7 +143,10 @@ user_pref("browser.safebrowsing.downloads.remote.enabled", false); /** MOZILLA ***/ user_pref("permissions.default.desktop-notification", 2); user_pref("permissions.default.geo", 2); -user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); +user_pref( + "geo.provider.network.url", + "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%" +); user_pref("permissions.manager.defaultsUrl", ""); user_pref("webchannel.allowObject.urlWhitelist", ""); @@ -177,15 +186,21 @@ user_pref("network.connectivity-service.enabled", false); /**************************************************************************** * SECTION: PESKYFOX * -****************************************************************************/ + ****************************************************************************/ /** MOZILLA UI ***/ user_pref("browser.privatebrowsing.vpnpromourl", ""); user_pref("extensions.getAddons.showPane", false); user_pref("extensions.htmlaboutaddons.recommendations.enabled", false); user_pref("browser.discovery.enabled", false); user_pref("browser.shell.checkDefaultBrowser", false); -user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false); -user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false); +user_pref( + "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", + false +); +user_pref( + "browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", + false +); user_pref("browser.preferences.moreFromMozilla", false); user_pref("browser.tabs.tabmanager.enabled", false); user_pref("browser.aboutConfig.showWarning", false); @@ -239,17 +254,17 @@ user_pref("layout.word_select.eat_space_to_next_word", false); /**************************************************************************** * START: MY OVERRIDES * -****************************************************************************/ + ****************************************************************************/ // visit https://github.com/yokoffing/Betterfox/wiki/Common-Overrides // visit https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening // Enter your personal overrides below this line: /**************************************************************************** * SECTION: SMOOTHFOX * -****************************************************************************/ + ****************************************************************************/ // visit https://github.com/yokoffing/Betterfox/blob/main/Smoothfox.js // Enter your scrolling overrides below this line: /**************************************************************************** * END: BETTERFOX * -****************************************************************************/ + ****************************************************************************/ diff --git a/home/programs/helix/default.nix b/home/programs/editors/helix/default.nix similarity index 100% rename from home/programs/helix/default.nix rename to home/programs/editors/helix/default.nix diff --git a/home/programs/helix/languages.nix b/home/programs/editors/helix/languages.nix similarity index 100% rename from home/programs/helix/languages.nix rename to home/programs/editors/helix/languages.nix diff --git a/home/programs/helix/themes/catppuccin_mocha.nix b/home/programs/editors/helix/themes/catppuccin_mocha.nix similarity index 100% rename from home/programs/helix/themes/catppuccin_mocha.nix rename to home/programs/editors/helix/themes/catppuccin_mocha.nix diff --git a/home/programs/helix/themes/tokyonight.nix b/home/programs/editors/helix/themes/tokyonight.nix similarity index 100% rename from home/programs/helix/themes/tokyonight.nix rename to home/programs/editors/helix/themes/tokyonight.nix diff --git a/home/programs/git.nix b/home/programs/git.nix index bb8e6a5..4952aa5 100644 --- a/home/programs/git.nix +++ b/home/programs/git.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +_: { programs = { git = { enable = true; diff --git a/home/programs/cava.nix b/home/programs/media/cava.nix similarity index 100% rename from home/programs/cava.nix rename to home/programs/media/cava.nix diff --git a/home/programs/spotify-player.nix b/home/programs/media/spotify-player.nix similarity index 100% rename from home/programs/spotify-player.nix rename to home/programs/media/spotify-player.nix diff --git a/home/programs/zathura.nix b/home/programs/media/zathura.nix similarity index 100% rename from home/programs/zathura.nix rename to home/programs/media/zathura.nix diff --git a/home/programs/atuin.nix b/home/programs/terminal/atuin.nix similarity index 100% rename from home/programs/atuin.nix rename to home/programs/terminal/atuin.nix diff --git a/home/programs/bat.nix b/home/programs/terminal/bat.nix similarity index 100% rename from home/programs/bat.nix rename to home/programs/terminal/bat.nix diff --git a/home/programs/lazygit/default.nix b/home/programs/terminal/lazygit/default.nix similarity index 100% rename from home/programs/lazygit/default.nix rename to home/programs/terminal/lazygit/default.nix diff --git a/home/programs/neofetch/config.conf b/home/programs/terminal/neofetch/config.conf similarity index 100% rename from home/programs/neofetch/config.conf rename to home/programs/terminal/neofetch/config.conf diff --git a/home/programs/neofetch/default.nix b/home/programs/terminal/neofetch/default.nix similarity index 100% rename from home/programs/neofetch/default.nix rename to home/programs/terminal/neofetch/default.nix diff --git a/home/programs/nushell/config.nu b/home/programs/terminal/nushell/config.nu similarity index 100% rename from home/programs/nushell/config.nu rename to home/programs/terminal/nushell/config.nu diff --git a/home/programs/nushell/default.nix b/home/programs/terminal/nushell/default.nix similarity index 100% rename from home/programs/nushell/default.nix rename to home/programs/terminal/nushell/default.nix diff --git a/home/programs/nushell/env.nu b/home/programs/terminal/nushell/env.nu similarity index 100% rename from home/programs/nushell/env.nu rename to home/programs/terminal/nushell/env.nu diff --git a/home/programs/starship.nix b/home/programs/terminal/starship.nix similarity index 100% rename from home/programs/starship.nix rename to home/programs/terminal/starship.nix diff --git a/home/programs/wezterm/config.lua b/home/programs/terminal/wezterm/config.lua similarity index 100% rename from home/programs/wezterm/config.lua rename to home/programs/terminal/wezterm/config.lua diff --git a/home/programs/wezterm/default.nix b/home/programs/terminal/wezterm/default.nix similarity index 100% rename from home/programs/wezterm/default.nix rename to home/programs/terminal/wezterm/default.nix diff --git a/home/programs/yazi/default.nix b/home/programs/terminal/yazi/default.nix similarity index 100% rename from home/programs/yazi/default.nix rename to home/programs/terminal/yazi/default.nix diff --git a/home/programs/yazi/init.lua b/home/programs/terminal/yazi/init.lua similarity index 100% rename from home/programs/yazi/init.lua rename to home/programs/terminal/yazi/init.lua diff --git a/home/programs/yazi/keymap.nix b/home/programs/terminal/yazi/keymap.nix similarity index 100% rename from home/programs/yazi/keymap.nix rename to home/programs/terminal/yazi/keymap.nix diff --git a/home/programs/yazi/openers.nix b/home/programs/terminal/yazi/openers.nix similarity index 100% rename from home/programs/yazi/openers.nix rename to home/programs/terminal/yazi/openers.nix diff --git a/home/programs/zellij/default.nix b/home/programs/terminal/zellij/default.nix similarity index 100% rename from home/programs/zellij/default.nix rename to home/programs/terminal/zellij/default.nix diff --git a/home/programs/zellij/layouts.nix b/home/programs/terminal/zellij/layouts.nix similarity index 100% rename from home/programs/zellij/layouts.nix rename to home/programs/terminal/zellij/layouts.nix diff --git a/home/programs/zoxide.nix b/home/programs/terminal/zoxide.nix similarity index 100% rename from home/programs/zoxide.nix rename to home/programs/terminal/zoxide.nix diff --git a/hosts/default.nix b/hosts/default.nix index 8a2dc10..5919ec8 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -32,6 +32,25 @@ } ]; }; + ame = nixosSystem { + inherit specialArgs; + modules = [ + ./ame + sopsModule + hmModule + t480Module + { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + extraSpecialArgs = specialArgs; + users.notoh = { + imports = homeImports."notoh@ame"; + }; + }; + } + ]; + }; sakura = nixosSystem { inherit specialArgs; modules = [ @@ -86,25 +105,6 @@ } ]; }; - ame = nixosSystem { - inherit specialArgs; - modules = [ - ./ame - sopsModule - hmModule - t480Module - { - home-manager = { - useGlobalPkgs = true; - useUserPackages = true; - extraSpecialArgs = specialArgs; - users.notoh = { - imports = homeImports."notoh@ame"; - }; - }; - } - ]; - }; arashi = nixosSystem { inherit specialArgs; modules = [ diff --git a/hosts/deploy.nix b/hosts/deploy.nix index 74c39cc..2456614 100644 --- a/hosts/deploy.nix +++ b/hosts/deploy.nix @@ -1,87 +1,85 @@ {inputs, ...}: { - flake = { - deploy = { - nodes = with inputs.deploy-rs.lib.x86_64-linux; { - sakura = { - hostname = "100.121.201.47"; - profiles.system = { - user = "root"; - path = activate.nixos inputs.self.nixosConfigurations.sakura; - }; - sshUser = "root"; - sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; - magicRollback = true; + flake.deploy = { + nodes = with inputs.deploy-rs.lib.x86_64-linux; { + sakura = { + hostname = "100.121.201.47"; + profiles.system = { + user = "root"; + path = activate.nixos inputs.self.nixosConfigurations.sakura; }; - kariru = { - hostname = "100.126.229.95"; - profiles.system = { - user = "root"; - path = activate.nixos inputs.self.nixosConfigurations.kariru; - }; - sshUser = "root"; - sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; - magicRollback = true; + sshUser = "root"; + sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; + magicRollback = true; + }; + kariru = { + hostname = "100.126.229.95"; + profiles.system = { + user = "root"; + path = activate.nixos inputs.self.nixosConfigurations.kariru; }; - yuki = { - hostname = "100.108.113.89"; - profiles.system = { - user = "root"; - path = activate.nixos inputs.self.nixosConfigurations.yuki; - }; - sshUser = "root"; - sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; - magicRollback = true; + sshUser = "root"; + sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; + magicRollback = true; + }; + yuki = { + hostname = "100.108.113.89"; + profiles.system = { + user = "root"; + path = activate.nixos inputs.self.nixosConfigurations.yuki; }; - arashi = { - hostname = "100.94.214.100"; - profiles.system = { - user = "root"; - path = activate.nixos inputs.self.nixosConfigurations.arashi; - }; - sshUser = "root"; - sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; - magicRollback = true; + sshUser = "root"; + sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; + magicRollback = true; + }; + arashi = { + hostname = "100.94.214.100"; + profiles.system = { + user = "root"; + path = activate.nixos inputs.self.nixosConfigurations.arashi; }; - sora = { - hostname = "100.104.42.96"; - profiles.system = { - user = "root"; - path = activate.nixos inputs.self.nixosConfigurations.sora; - }; - sshUser = "root"; - sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; - magicRollback = true; + sshUser = "root"; + sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; + magicRollback = true; + }; + sora = { + hostname = "100.104.42.96"; + profiles.system = { + user = "root"; + path = activate.nixos inputs.self.nixosConfigurations.sora; }; - tsuru = { - hostname = "100.82.146.40"; - profiles.system = { - user = "root"; - path = activate.nixos inputs.self.nixosConfigurations.tsuru; - }; - sshUser = "root"; - sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; - magicRollback = true; + sshUser = "root"; + sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; + magicRollback = true; + }; + tsuru = { + hostname = "100.82.146.40"; + profiles.system = { + user = "root"; + path = activate.nixos inputs.self.nixosConfigurations.tsuru; }; - haru = { - hostname = "100.73.192.45"; - profiles.system = { - user = "root"; - path = activate.nixos inputs.self.nixosConfigurations.haru; - }; - sshUser = "root"; - sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; - magicRollback = true; + sshUser = "root"; + sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; + magicRollback = true; + }; + haru = { + hostname = "100.73.192.45"; + profiles.system = { + user = "root"; + path = activate.nixos inputs.self.nixosConfigurations.haru; }; - kaze = { - hostname = "100.69.79.81"; - profiles.system = { - user = "root"; - path = activate.nixos inputs.self.nixosConfigurations.kaze; - }; - sshUser = "root"; - sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; - magicRollback = true; + sshUser = "root"; + sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; + magicRollback = true; + }; + kaze = { + hostname = "100.69.79.81"; + profiles.system = { + user = "root"; + path = activate.nixos inputs.self.nixosConfigurations.kaze; }; + sshUser = "root"; + sshOpts = ["-t" "-i" "~/.ssh/forgejo"]; + magicRollback = true; }; }; }; diff --git a/hosts/sora/hardware.nix b/hosts/sora/hardware.nix index 018c1f0..feda00f 100644 --- a/hosts/sora/hardware.nix +++ b/hosts/sora/hardware.nix @@ -1,4 +1,8 @@ -{modulesPath, ...}: { +{ + modulesPath, + lib, + ... +}: { imports = [(modulesPath + "/profiles/qemu-guest.nix")]; zramSwap.enable = true; @@ -26,4 +30,5 @@ fsType = "vfat"; }; }; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } diff --git a/modules/default.nix b/modules/default.nix index 85dac28..fb3ae59 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,4 +1,4 @@ -{inputs, ...}: { +_: { imports = [ ./prometheus.nix ./security.nix