Compare commits

..

5 Commits

Author SHA1 Message Date
Ghostfox
be2b0590a5 Ghostfox 2026-05-30 13:27:44 +02:00
64e088a0df update 2026-05-24 13:09:09 +02:00
Ghostfox
9b09f60121 Fix hibernation 2026-04-28 08:43:16 +02:00
09329c43a1 Port Kurin's changes 2026-04-26 13:53:27 +02:00
beaf55ead0 Prepare for Kurin rebuild 2026-04-26 13:06:59 +02:00
16 changed files with 345 additions and 135 deletions

82
flake.lock generated
View File

@@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1777024856,
"narHash": "sha256-OQ+yIcRMXo4UaHyX+W5DCgBvJ5dZo/3kFGWPJiuR6x8=",
"lastModified": 1779125773,
"narHash": "sha256-F34zmAgMQXHwvFb9SpCilX4cAIfF4+KvpzrJqnkNLJE=",
"owner": "catppuccin",
"repo": "nix",
"rev": "f41cc1cf13647e482b7317396f749840ef715e16",
"rev": "86996e2c4ee6a091fddb10de56dd21a1a5972bcb",
"type": "github"
},
"original": {
@@ -26,11 +26,11 @@
},
"locked": {
"dir": "pkgs/firefox-addons",
"lastModified": 1777089773,
"narHash": "sha256-ZIlNuebeWTncyl7mcV9VbceSLAaZki+UeXLPQG959xI=",
"lastModified": 1779336167,
"narHash": "sha256-YbAbHiHmPhBVqgVvWzFOrQTkmYQ7oXOvEBNDRT6ruBA=",
"owner": "rycee",
"repo": "nur-expressions",
"rev": "402ba229617a12d918c2a887a4c83a9a24f9a36c",
"rev": "e4bc7d7ca24db3a7b1daac4ef0957b8148b444bf",
"type": "gitlab"
},
"original": {
@@ -43,11 +43,11 @@
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1751685974,
"narHash": "sha256-NKw96t+BgHIYzHUjkTK95FqYRVKB8DHpVhefWSz/kTw=",
"lastModified": 1777699697,
"narHash": "sha256-Eg9b/rq/ECYwNwEXs5i9wHyhxNI0JrYx2srdI2uZMaQ=",
"ref": "refs/heads/main",
"rev": "549f2762aebeff29a2e5ece7a7dc0f955281a1d1",
"revCount": 92,
"rev": "382052b74656a369c5408822af3f2501e9b1af81",
"revCount": 94,
"type": "git",
"url": "https://git.lix.systems/lix-project/flake-compat.git"
},
@@ -64,11 +64,11 @@
]
},
"locked": {
"lastModified": 1769996383,
"narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=",
"lastModified": 1778716662,
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "57928607ea566b5db3ad13af0e57e921e6b12381",
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
"type": "github"
},
"original": {
@@ -84,11 +84,11 @@
]
},
"locked": {
"lastModified": 1777086106,
"narHash": "sha256-hlNpIN18pw3xo34Lsrp6vAMUPn0aB/zFBqL0QXI1Pmk=",
"lastModified": 1779336838,
"narHash": "sha256-n1+l78hJRABp4cQHKeD0BVByT0vZLPqd09Tvoq8Q+d8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "5826802354a74af18540aef0b01bc1320f82cc17",
"rev": "928d72376949e222ea4f07b44828a55b0136422e",
"type": "github"
},
"original": {
@@ -99,11 +99,11 @@
},
"mnw": {
"locked": {
"lastModified": 1770419553,
"narHash": "sha256-b1XqsH7AtVf2dXmq2iyRr2NC1yG7skY7Z6N2MpWHlK4=",
"lastModified": 1778541201,
"narHash": "sha256-n0twkzWexzjsoDycOTvvQNuGEdg62UiNHYcFCduYpKI=",
"owner": "Gerg-L",
"repo": "mnw",
"rev": "2aaffa8030d0b262176146adbb6b0e6374ce2957",
"rev": "1a3573fc9d2486738fe0b2cacc5cd10dd5f3a445",
"type": "github"
},
"original": {
@@ -120,27 +120,27 @@
]
},
"locked": {
"lastModified": 1776882296,
"narHash": "sha256-DWZozXwMsgvUqfVlL1mQ8dOxW7GJ/8CdyaDN+1niZRg=",
"lastModified": 1779233504,
"narHash": "sha256-YIKEyzh0NFQlD0O92LQQNMoVCDwV8yw1Xz0Iu+4ZC5U=",
"owner": "feel-co",
"repo": "ndg",
"rev": "ab7d78d4884b3a34968cf9fa3d16c0c1246d5c6e",
"rev": "86f6644411a64d5413711895b7cf6e0e1be465b6",
"type": "github"
},
"original": {
"owner": "feel-co",
"ref": "refs/tags/v2.6.0",
"ref": "refs/tags/v2.8.0",
"repo": "ndg",
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1776983936,
"narHash": "sha256-ZOQyNqSvJ8UdrrqU1p7vaFcdL53idK+LOM8oRWEWh6o=",
"lastModified": 1779258371,
"narHash": "sha256-j1iZsLy6oFApqR1oiDmHhvkwxXqcNi0aoSJj643LuwU=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "2096f3f411ce46e88a79ae4eafcfc9df8ed41c61",
"rev": "c97bc4d15bd3473dd095e8e8ba57330ab1943a77",
"type": "github"
},
"original": {
@@ -152,11 +152,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1776548001,
"narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=",
"lastModified": 1778443072,
"narHash": "sha256-zi7/fsqM/kFdNuED//4WOCUtezGtKKqRNORjMvfwjnA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc",
"rev": "da5ad661ba4e5ef59ba743f0d112cbc30e474f32",
"type": "github"
},
"original": {
@@ -168,11 +168,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1776877367,
"narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=",
"lastModified": 1778869304,
"narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0726a0ecb6d4e08f6adced58726b95db924cef57",
"rev": "d233902339c02a9c334e7e593de68855ad26c4cb",
"type": "github"
},
"original": {
@@ -194,11 +194,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1777062815,
"narHash": "sha256-RWwgP/R2nIcyOTPYJdApqvj/dVc4+n/4kOCNlRnfb7U=",
"lastModified": 1779322566,
"narHash": "sha256-4fsU5w4WXGiDMSRkCTKeEbQwc8TbRSeNOZDlfOM4e7o=",
"owner": "NotAShelf",
"repo": "nvf",
"rev": "41394699260ffc533a688d0ca5b8888bd5e64233",
"rev": "01d49ca23a885fdded35fb44b8eec3b4707b8aef",
"type": "github"
},
"original": {
@@ -250,11 +250,11 @@
]
},
"locked": {
"lastModified": 1776771786,
"narHash": "sha256-DRFGPfFV6hbrfO9a1PH1FkCi7qR5FgjSqsQGGvk1rdI=",
"lastModified": 1777944972,
"narHash": "sha256-VfGRo1qTBKOe3s2gOv8LSoA6Fk19PvBlwQ1ECN0Evn8=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "bef289e2248991f7afeb95965c82fbcd8ff72598",
"rev": "c591bf665727040c6cc5cb409079acb22dcce33c",
"type": "github"
},
"original": {
@@ -288,11 +288,11 @@
]
},
"locked": {
"lastModified": 1777084302,
"narHash": "sha256-qHE5XpgtRedzND5xzaqzbSOw4amse0aA4/BaVI4ONcU=",
"lastModified": 1779377324,
"narHash": "sha256-svU6Ro4xiMxMA1KJGwQ/nfKwz3yXE/SONCw2Z1qTXHA=",
"owner": "0xc000022070",
"repo": "zen-browser-flake",
"rev": "f6bab88f8566ddc13fb5e5500bd6c720b61d5321",
"rev": "1ac4a5872e1d76a93329a4d0698d0de35b8bdd67",
"type": "github"
},
"original": {

View File

@@ -47,6 +47,14 @@
in
{
nixosConfigurations = {
ghostfox = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
inherit specialArgs;
modules = [
./systems/ghostfox/configuration.nix
];
};
saturn = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
inherit specialArgs;

View File

@@ -5,8 +5,9 @@
inputs.home-manager.nixosModules.home-manager
inputs.nvf.nixosModules.default
./nvf
./nvf
./branding.nix
./filesystems.nix
./garbage.nix
./locale.nix
./nix.nix

View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
boot.supportedFilesystems = [
"exfat"
];
environment.systemPackages = with pkgs; [
exfat
];
}

View File

@@ -56,5 +56,8 @@
w3m
zstd
lshw
e2fsprogs
smartmontools
];
}

View File

@@ -8,6 +8,6 @@
boot.kernelParams = [
"vm.swappiness=30"
"hibernate.compressor=lz4"
# "hibernate.compressor=lz4"
];
}

View File

@@ -30,4 +30,7 @@
fonts.packages = with pkgs; [
montserrat
];
programs.appimage.enable = true;
programs.fuse.enable = true;
}

View File

@@ -2,14 +2,6 @@
"accessibility.typeaheadfind.flashBar": 0,
"app.normandy.first_run": false,
"app.normandy.migrationsApplied": 12,
"app.update.lastUpdateTime.addon-background-update-timer": 1774516788,
"app.update.lastUpdateTime.background-update-timer": 1774516788,
"app.update.lastUpdateTime.browser-cleanup-thumbnails": 1774516788,
"app.update.lastUpdateTime.glean-addons-daily": 1774516788,
"app.update.lastUpdateTime.region-update-timer": 1774334255,
"app.update.lastUpdateTime.rs-experiment-loader-timer": 1774422453,
"app.update.lastUpdateTime.services-settings-poll-changes": 1774516788,
"app.update.lastUpdateTime.xpi-signature-verification": 1774516788,
"browser.aboutConfig.showWarning": false,
"browser.bookmarks.addedImportButton": true,
"browser.bookmarks.restore_default_bookmarks": false,
@@ -34,7 +26,6 @@
"browser.preferences.experimental.hidden": true,
"browser.proton.toolbar.version": 3,
"browser.region.update.updated": 1774334226,
"browser.safebrowsing.provider.mozilla.lastupdatetime": "1774517278647",
"browser.safebrowsing.provider.mozilla.nextupdatetime": "1774538878647",
"browser.search.region": "PL",
"browser.search.totalSearches": 56,
@@ -44,18 +35,14 @@
"browser.startup.couldRestoreSession.count": 1,
"browser.startup.homepage_override.buildID": "20260315063056",
"browser.startup.homepage_override.mstone": "148.0.2",
"browser.startup.lastColdStartupCheck": 1774422453,
"browser.termsofuse.prefMigrationCheck": true,
"browser.theme.toolbar-theme": 0,
"browser.uiCustomization.state": "{\"placements\":{\"widget-overflow-fixed-list\":[],\"unified-extensions-area\":[\"ublock0_raymondhill_net-browser-action\",\"_bbb880ce-43c9-47ae-b746-c3e0096c5b76_-browser-action\",\"_34daeb50-c2d2-4f14-886a-7160b24d66a4_-browser-action\",\"_762f9885-5a13-4abd-9c77-433dcd38b8fd_-browser-action\",\"_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-browser-action\",\"_9a3104a2-02c2-464c-b069-82344e5ed4ec_-browser-action\",\"_799c0914-748b-41df-a25c-22d008f9e83f_-browser-action\",\"_bb1b80be-e6b3-40a1-9b6e-9d4073343f0b_-browser-action\"],\"nav-bar\":[\"back-button\",\"forward-button\",\"stop-reload-button\",\"customizableui-special-spring1\",\"vertical-spacer\",\"urlbar-container\",\"customizableui-special-spring2\",\"unified-extensions-button\",\"_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action\",\"addon_simplelogin-browser-action\",\"jordanlinkwarden_gmail_com-browser-action\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\"],\"vertical-tabs\":[],\"PersonalToolbar\":[\"import-button\",\"personal-bookmarks\"],\"zen-sidebar-top-buttons\":[\"zen-toggle-compact-mode\"],\"zen-sidebar-foot-buttons\":[\"downloads-button\",\"zen-workspaces-button\",\"zen-create-new-button\"]},\"seen\":[\"developer-button\",\"screenshot-button\",\"ublock0_raymondhill_net-browser-action\",\"_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action\",\"_bbb880ce-43c9-47ae-b746-c3e0096c5b76_-browser-action\",\"addon_simplelogin-browser-action\",\"jordanlinkwarden_gmail_com-browser-action\",\"_34daeb50-c2d2-4f14-886a-7160b24d66a4_-browser-action\",\"_762f9885-5a13-4abd-9c77-433dcd38b8fd_-browser-action\",\"_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-browser-action\",\"_9a3104a2-02c2-464c-b069-82344e5ed4ec_-browser-action\",\"_799c0914-748b-41df-a25c-22d008f9e83f_-browser-action\",\"_bb1b80be-e6b3-40a1-9b6e-9d4073343f0b_-browser-action\"],\"dirtyAreaCache\":[\"nav-bar\",\"vertical-tabs\",\"zen-sidebar-foot-buttons\",\"PersonalToolbar\",\"toolbar-menubar\",\"TabsToolbar\",\"zen-sidebar-top-buttons\",\"unified-extensions-area\"],\"currentVersion\":23,\"newElementCount\":2}",
"browser.urlbar.lastUrlbarSearchSeconds": 1774516881,
"browser.urlbar.quicksuggest.migrationVersion": 6,
"browser.urlbar.recentsearches.lastDefaultChanged": "1774334439109",
"browser.urlbar.suggest.clipboard": false,
"browser.urlbar.suggest.engines": false,
"browser.urlbar.suggest.history": false,
"browser.urlbar.suggest.recentsearches": false,
"captchadetection.lastSubmission": 1774334,
"datareporting.dau.cachedUsageProfileGroupID": "adde67e1-23aa-48bf-a313-5323aa23030a",
"datareporting.dau.cachedUsageProfileID": "fd6afd74-59c6-4b0c-a386-283290282e58",
"devtools.everOpened": true,
@@ -73,9 +60,6 @@
"extensions.blocklist.pingCountVersion": 0,
"extensions.colorway-builtin-themes-cleanup": 1,
"extensions.databaseSchema": 37,
"extensions.lastAppBuildId": "20260315063056",
"extensions.lastAppVersion": "1.19.3b",
"extensions.lastPlatformVersion": "148.0.2",
"extensions.pendingOperations": false,
"extensions.pictureinpicture.enable_picture_in_picture_overrides": true,
"extensions.quarantinedDomains.list": "autoatendimento.bb.com.br,ibpf.sicredi.com.br,ibpj.sicredi.com.br,internetbanking.caixa.gov.br,www.ib12.bradesco.com.br,www2.bancobrasil.com.br",
@@ -88,25 +72,15 @@
"extensions.webcompat.enable_interventions": true,
"extensions.webcompat.enable_shims": true,
"gecko.handlerService.defaultHandlersVersion": 1,
"idle.lastDailyNotification": 1774422802,
"media.gmp-gmpopenh264.abi": "x86_64-gcc3",
"media.gmp-gmpopenh264.hashValue": "f5246bf14d038adf4ce0c4360262ab722bc3de4220f047c3d542b4c564074b4877dc8659e3125c5171c749e7ce93f20cc63777eb5e1539e960670cbc5f30ac85",
"media.gmp-gmpopenh264.lastDownload": 1774334257,
"media.gmp-gmpopenh264.lastInstallStart": 1774334256,
"media.gmp-gmpopenh264.lastUpdate": 1774334257,
"media.gmp-gmpopenh264.version": "2.6.0",
"media.gmp-manager.buildID": "20260315063056",
"media.gmp-manager.lastCheck": 1774422477,
"media.gmp-manager.lastEmptyCheck": 1774422477,
"media.gmp-widevinecdm.abi": "x86_64-gcc3",
"media.gmp-widevinecdm.hashValue": "421214210a09a9f9ed8ce482ef857f1c2b29ce1739240d1ec99a61caa3d80db3393752275722bdf5f503489f12a753215fe8a0c82de3aca23780d4ffe5792eb1",
"media.gmp-widevinecdm.lastDownload": 1774334258,
"media.gmp-widevinecdm.lastInstallStart": 1774334256,
"media.gmp-widevinecdm.lastUpdate": 1774334259,
"media.gmp-widevinecdm.version": "4.10.2934.0",
"media.gmp.storage.version.observed": 1,
"media.videocontrols.picture-in-picture.video-toggle.first-seen-secs": 1774334392,
"network.cookie.CHIPS.lastMigrateDatabase": 2,
"network.dns.disablePrefetch": true,
"network.http.referer.disallowCrossSiteRelaxingDefault.top_navigation": true,
"network.http.speculative-parallel-limit": 0,
@@ -118,7 +92,6 @@
"nimbus.rollouts.enabled": false,
"pdfjs.enabledCache.state": true,
"pdfjs.migrationVersion": 2,
"places.database.lastMaintenance": 1774336005,
"privacy.annotate_channels.strict_list.enabled": true,
"privacy.bounceTrackingProtection.hasMigratedUserActivationData": true,
"privacy.bounceTrackingProtection.mode": 1,
@@ -126,7 +99,6 @@
"privacy.fingerprintingProtection": true,
"privacy.globalprivacycontrol.was_ever_enabled": true,
"privacy.purge_trackers.date_in_cookie_database": "0",
"privacy.purge_trackers.last_purge": "1774422802819",
"privacy.query_stripping.enabled": true,
"privacy.query_stripping.enabled.pbmode": true,
"privacy.sanitize.clearOnShutdown.hasMigratedToNewPrefs3": true,
@@ -138,63 +110,7 @@
"privacy.trackingprotection.enabled": true,
"privacy.trackingprotection.socialtracking.enabled": true,
"privacy.userContext.enabled": false,
"services.settings.blocklists.addons-bloomfilters.last_check": 1774516798,
"services.settings.blocklists.gfx.last_check": 1774516798,
"services.settings.clock_skew_seconds": -973,
"services.settings.last_etag": "\"1774516700820\"",
"services.settings.last_update_seconds": 1774518671,
"services.settings.main.addons-data-leak-blocker-domains.last_check": 1774516798,
"services.settings.main.addons-manager-settings.last_check": 1774516798,
"services.settings.main.anti-tracking-url-decoration.last_check": 1774516798,
"services.settings.main.bounce-tracking-protection-exceptions.last_check": 1774516798,
"services.settings.main.cfr.last_check": 1774516798,
"services.settings.main.cookie-banner-rules-list.last_check": 1774516798,
"services.settings.main.devtools-compatibility-browsers.last_check": 1774516798,
"services.settings.main.devtools-devices.last_check": 1774516798,
"services.settings.main.doh-config.last_check": 1774516798,
"services.settings.main.doh-providers.last_check": 1774516798,
"services.settings.main.fingerprinting-protection-overrides.last_check": 1774516798,
"services.settings.main.fxmonitor-breaches.last_check": 1774516798,
"services.settings.main.fxrelay-denylist.last_check": 1774516798,
"services.settings.main.hijack-blocklists.last_check": 1774516798,
"services.settings.main.language-dictionaries.last_check": 1774516798,
"services.settings.main.message-groups.last_check": 1774516798,
"services.settings.main.moz-essential-domain-fallbacks.last_check": 1774516798,
"services.settings.main.newtab-frecency-boosted-sponsors.last_check": 1774516798,
"services.settings.main.newtab-wallpapers-v2.last_check": 1774516798,
"services.settings.main.nimbus-desktop-experiments.last_check": 1774516798,
"services.settings.main.nimbus-secure-experiments.last_check": 1774516798,
"services.settings.main.normandy-recipes-capabilities.last_check": 1774516798,
"services.settings.main.partitioning-exempt-urls.last_check": 1774516798,
"services.settings.main.password-recipes.last_check": 1774516798,
"services.settings.main.password-rules.last_check": 1774516798,
"services.settings.main.query-stripping.last_check": 1774516798,
"services.settings.main.remote-permissions.last_check": 1774516798,
"services.settings.main.search-categorization.last_check": 1774516798,
"services.settings.main.search-config-icons.last_check": 1774516798,
"services.settings.main.search-config-overrides-v2.last_check": 1774516798,
"services.settings.main.search-config-v2.last_check": 1774516798,
"services.settings.main.search-default-override-allowlist.last_check": 1774516798,
"services.settings.main.search-telemetry-v2.last_check": 1774516798,
"services.settings.main.sites-classification.last_check": 1774516798,
"services.settings.main.third-party-cookie-blocking-exempt-urls.last_check": 1774516798,
"services.settings.main.tippytop.last_check": 1774516798,
"services.settings.main.top-sites.last_check": 1774516798,
"services.settings.main.tracking-protection-lists.last_check": 1774516798,
"services.settings.main.translations-models-v2.last_check": 1774516798,
"services.settings.main.translations-models.last_check": 1774516798,
"services.settings.main.translations-wasm.last_check": 1774516798,
"services.settings.main.url-classifier-exceptions.last_check": 1774516798,
"services.settings.main.url-classifier-skip-urls.last_check": 1774516798,
"services.settings.main.url-parser-default-unknown-schemes-interventions.last_check": 1774516798,
"services.settings.main.urlbar-persisted-search-terms.last_check": 1774516798,
"services.settings.main.vpn-serverlist.last_check": 1774516798,
"services.settings.main.webcompat-interventions.last_check": 1774516798,
"services.settings.main.websites-with-shared-credential-backends.last_check": 1774516798,
"services.settings.security-state.cert-revocations.last_check": 1774516798,
"services.settings.security-state.intermediates.last_check": 1774516798,
"services.settings.security-state.onecrl.last_check": 1774516798,
"services.sync.clients.lastSync": "0",
"services.sync.declinedEngines": "",
"services.sync.globalScore": 0,
"services.sync.nextSync": 0,
@@ -203,11 +119,7 @@
"sidebar.old-sidebar.has-used": true,
"sidebar.visibility": "hide-sidebar",
"signon.rememberSignons": false,
"storage.vacuum.last.content-prefs.sqlite": 1774422802,
"storage.vacuum.last.index": 1,
"storage.vacuum.last.places.sqlite": 1774336005,
"toolkit.profiles.storeID": "ec86175a",
"toolkit.startup.last_success": 1774422449,
"toolkit.telemetry.cachedClientID": "db6ff3c4-7baf-4ea9-a890-4ec58a05ef11",
"toolkit.telemetry.cachedProfileGroupID": "2eb8d1d6-3833-4429-8f8e-c258ae9308e4",
"toolkit.telemetry.reportingpolicy.firstRun": false,

View File

@@ -1,11 +1,16 @@
{ config, ... }:
let
hasGui = config.services.dbus.implementation == "dbus";
in
{
imports = [
./direnv.nix
./java.nix
./packages.nix
./virt-manager.nix
];
programs.wireshark.enable = true;
programs.wireshark.enable = hasGui;
home-manager.sharedModules = [
./home

View File

@@ -28,9 +28,18 @@ in
skellock.just
docker.docker
redhat.vscode-yaml
bradlc.vscode-tailwindcss
dbaeumer.vscode-eslint
mesonbuild.mesonbuild
ms-vscode.cmake-tools
ms-dotnettools.csharp
ms-dotnettools.csdevkit
ms-dotnettools.vscode-dotnet-runtime
];
userSettings = {
"chat.agent.enabled" = false;
"github.copilot.enable" = {};
"editor.inlineSuggest.suppressSuggestions" = true;
};
};
};

View File

@@ -0,0 +1,50 @@
{ config, lib, pkgs, ... }:
let
hasGui = config.services.dbus.implementation == "dbus";
openjfx_jdk = pkgs.openjfx.override {
withWebKit = true;
};
in
{
config = lib.mkIf hasGui
{
programs.java = {
enable = true;
package = pkgs.jdk21.override {
enableJavaFX = true;
inherit openjfx_jdk;
};
};
environment.systemPackages = with pkgs; [
gradle
netbeans
dejavu_fonts
];
programs.nix-ld = {
enable = true;
libraries = (with pkgs; [
libxrender
libxi
libxcursor
libxtst
alsa-lib
libjack2
libpulseaudio
pipewire
## glfw
libGL
libx11
libxcursor
libxext
libxrandr
libxxf86vm
freetype
libxft
]);
};
};
}

View File

@@ -1,5 +1,26 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
let
hasGui = config.services.dbus.implementation == "dbus";
dotnet-combined = (with pkgs.dotnetCorePackages; combinePackages [
sdk_8_0
sdk_10_0
]).overrideAttrs (finalAttrs: previousAttrs: {
# This is needed to install workload in $HOME
# https://discourse.nixos.org/t/dotnet-maui-workload/20370/2
postBuild = (previousAttrs.postBuild or '''') + ''
for i in $out/sdk/*
do
i=$(basename $i)
mkdir -p $out/metadata/workloads/''${i/-*}
touch $out/metadata/workloads/''${i/-*}/userlocal
done
'';
});
in
{
environment.sessionVariables.DOTNET_ROOT = "${dotnet-combined}";
environment.systemPackages = with pkgs; [
# Languages
nodejs
@@ -9,6 +30,11 @@
nodejs
gcc
# Distrobox
distrobox
distrobox-tui
] ++ (if hasGui then with pkgs; [
wireshark
];
kontainer
] else []);
}

View File

@@ -44,7 +44,7 @@
temurin-jre-bin-11
temurin-jre-bin-17
temurin-jre-bin
# temurin-jre-bin-25
temurin-jre-bin-25
];
})
];

View File

@@ -13,4 +13,9 @@
system.nixos.variantName = lib.mkDefault "Server";
system.nixos.variant_id = lib.mkDefault "server";
services.openssh.enable = true;
boot.initrd.network.ssh = {
enable = true;
port = 21;
};
}

View File

@@ -0,0 +1,135 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
../../modules/base
../../modules/desktop
../../modules/desktop/plasma
../../modules/development
../../modules/gaming
../../modules/school
../../modules/server
../../modules/vibes
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
networking.hostName = "ghostfox"; # Define your hostname.
# Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true;
# Set your time zone.
# time.timeZone = "Europe/Amsterdam";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
# Enable the X11 windowing system.
# services.xserver.enable = true;
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# services.pulseaudio.enable = true;
# OR
services.pipewire = {
enable = true;
pulse.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
services.displayManager.plasma-login-manager.enable = true;
services.desktopManager.plasma6.enable = true;
# Define a user account. Don't forget to set a password with passwd.
# users.users.alice = {
# isNormalUser = true;
# extraGroups = [ "wheel" ]; # Enable sudo for the user.
# packages = with pkgs; [
# tree
# ];
# };
# programs.firefox.enable = true;
# List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options).
# environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
# ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
# to actually do that.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "25.11"; # Did you read the comment?
}

View File

@@ -0,0 +1,43 @@
# 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.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/F21D-6248";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/3718ddd1-cabd-47be-b149-40cb4fdf8c71";
fsType = "btrfs";
};
fileSystems."/disks/hdd2" =
{ device = "/dev/disk/by-uuid/9dba8b80-ca3a-4e02-bd3c-2192c830eaee";
fsType = "btrfs";
};
fileSystems."/disks/hdd1" =
{ device = "/dev/disk/by-uuid/7c14277d-e456-4f58-81db-30eb3101fd33";
fsType = "btrfs";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/e62b45be-b5ed-458a-bede-2ec95f22d630"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}