Format repo
This commit is contained in:
parent
db14de3471
commit
573a8cc407
18 changed files with 447 additions and 380 deletions
70
flake.nix
70
flake.nix
|
@ -47,12 +47,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = {
|
||||||
{ self
|
self,
|
||||||
, nixpkgs
|
nixpkgs,
|
||||||
, ...
|
...
|
||||||
}@inputs:
|
} @ inputs: let
|
||||||
let
|
|
||||||
supportedSystems = [
|
supportedSystems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"i686-linux"
|
"i686-linux"
|
||||||
|
@ -60,8 +59,7 @@
|
||||||
];
|
];
|
||||||
forAllSystems' = nixpkgs.lib.genAttrs;
|
forAllSystems' = nixpkgs.lib.genAttrs;
|
||||||
forAllSystems = forAllSystems' supportedSystems;
|
forAllSystems = forAllSystems' supportedSystems;
|
||||||
pkgsForSystem =
|
pkgsForSystem = system:
|
||||||
system:
|
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
|
@ -70,7 +68,12 @@
|
||||||
system: inputs.treefmt-nix.lib.evalModule (pkgsForSystem system) ./treefmt.nix
|
system: inputs.treefmt-nix.lib.evalModule (pkgsForSystem system) ./treefmt.nix
|
||||||
);
|
);
|
||||||
|
|
||||||
mkNixosSystem = {extraModule, nixpkgs' ? nixpkgs, useDefaultConfiguration ? true}: nixpkgs'.lib.nixosSystem rec {
|
mkNixosSystem = {
|
||||||
|
extraModule,
|
||||||
|
nixpkgs' ? nixpkgs,
|
||||||
|
useDefaultConfiguration ? true,
|
||||||
|
}:
|
||||||
|
nixpkgs'.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
@ -78,16 +81,22 @@
|
||||||
flake = self;
|
flake = self;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules =
|
||||||
|
[
|
||||||
extraModule
|
extraModule
|
||||||
] ++ nixpkgs'.lib.optional useDefaultConfiguration ./nixos;
|
]
|
||||||
|
++ nixpkgs'.lib.optional useDefaultConfiguration ./nixos;
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
formatter = forAllSystems (system: (treefmtEval.${system}.config.build.wrapper));
|
formatter = forAllSystems (system: (treefmtEval.${system}.config.build.wrapper));
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
x260 = mkNixosSystem { extraModule = ({ pkgs, lib, ... }: {
|
x260 = mkNixosSystem {
|
||||||
|
extraModule = {
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260];
|
imports = [inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
@ -107,17 +116,21 @@
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "rtsx_pci_sdmmc"];
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "rtsx_pci_sdmmc"];
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
x201 = mkNixosSystem {extraModule = ({ pkgs, lib, ... }: {
|
x201 = mkNixosSystem {
|
||||||
|
extraModule = {
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [inputs.disko.nixosModules.disko];
|
imports = [inputs.disko.nixosModules.disko];
|
||||||
config = {
|
config = {
|
||||||
networking.hostName = "x201";
|
networking.hostName = "x201";
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usb_storage"];
|
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usb_storage"];
|
||||||
|
|
||||||
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
sda = {
|
sda = {
|
||||||
|
@ -168,12 +181,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
sue-cosmic = mkNixosSystem {
|
sue-cosmic = mkNixosSystem {
|
||||||
useDefaultConfiguration = false;
|
useDefaultConfiguration = false;
|
||||||
extraModule = ({ ... }: {
|
extraModule = {...}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixos-hardware.nixosModules.dell-xps-13-9310
|
inputs.nixos-hardware.nixosModules.dell-xps-13-9310
|
||||||
inputs.nixos-cosmic.nixosModules.default
|
inputs.nixos-cosmic.nixosModules.default
|
||||||
|
@ -202,14 +215,12 @@
|
||||||
swapDevices = [{device = "/dev/disk/by-uuid/96a43c35-0174-4e92-81f0-168a5f601f0b";}];
|
swapDevices = [{device = "/dev/disk/by-uuid/96a43c35-0174-4e92-81f0-168a5f601f0b";}];
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" =
|
"/" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/31638735-5cc4-4013-8037-17e30edcbb0a";
|
device = "/dev/disk/by-uuid/31638735-5cc4-4013-8037-17e30edcbb0a";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/boot" =
|
"/boot" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/560E-F8A2";
|
device = "/dev/disk/by-uuid/560E-F8A2";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0022" "dmask=0022"];
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
|
@ -219,10 +230,11 @@
|
||||||
boot.initrd.luks.devices."luks-8ffd3129-4908-4209-98c4-4eb68a35c494".device = "/dev/disk/by-uuid/8ffd3129-4908-4209-98c4-4eb68a35c494";
|
boot.initrd.luks.devices."luks-8ffd3129-4908-4209-98c4-4eb68a35c494".device = "/dev/disk/by-uuid/8ffd3129-4908-4209-98c4-4eb68a35c494";
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage"];
|
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage"];
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
sue = mkNixosSystem {extraModule = ({ ... }: {
|
sue = mkNixosSystem {
|
||||||
|
extraModule = {...}: {
|
||||||
imports = [inputs.nixos-hardware.nixosModules.dell-xps-13-9310];
|
imports = [inputs.nixos-hardware.nixosModules.dell-xps-13-9310];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
@ -230,14 +242,12 @@
|
||||||
networking.hostName = "xps-9315";
|
networking.hostName = "xps-9315";
|
||||||
swapDevices = [{device = "/dev/disk/by-uuid/96a43c35-0174-4e92-81f0-168a5f601f0b";}];
|
swapDevices = [{device = "/dev/disk/by-uuid/96a43c35-0174-4e92-81f0-168a5f601f0b";}];
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" =
|
"/" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/31638735-5cc4-4013-8037-17e30edcbb0a";
|
device = "/dev/disk/by-uuid/31638735-5cc4-4013-8037-17e30edcbb0a";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/boot" =
|
"/boot" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/560E-F8A2";
|
device = "/dev/disk/by-uuid/560E-F8A2";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0022" "dmask=0022"];
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
|
@ -257,7 +267,7 @@
|
||||||
# platform = "ipu6ep";
|
# platform = "ipu6ep";
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
{ pkgs, lib, config, inputs, flake, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
flake,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./neovim
|
./neovim
|
||||||
./firefox
|
./firefox
|
||||||
|
@ -17,8 +24,7 @@
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
defaultApplications =
|
defaultApplications = let
|
||||||
let
|
|
||||||
applications = {
|
applications = {
|
||||||
telegram = {
|
telegram = {
|
||||||
mimeApp = "org.telegram.desktop.desktop";
|
mimeApp = "org.telegram.desktop.desktop";
|
||||||
|
@ -71,7 +77,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mimeTypesForApp = { mimeApp, mimeTypes }: map
|
mimeTypesForApp = {
|
||||||
|
mimeApp,
|
||||||
|
mimeTypes,
|
||||||
|
}:
|
||||||
|
map
|
||||||
(
|
(
|
||||||
mimeType: {"${mimeType}" = mimeApp;}
|
mimeType: {"${mimeType}" = mimeApp;}
|
||||||
)
|
)
|
||||||
|
@ -86,10 +96,12 @@
|
||||||
homeDirectory = "/home/pim";
|
homeDirectory = "/home/pim";
|
||||||
stateVersion = "23.05";
|
stateVersion = "23.05";
|
||||||
|
|
||||||
packages = (with pkgs; [
|
packages =
|
||||||
|
(with pkgs; [
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
virt-manager
|
virt-manager
|
||||||
]) ++ (with pkgs.unstable; [
|
])
|
||||||
|
++ (with pkgs.unstable; [
|
||||||
attic-client
|
attic-client
|
||||||
dbeaver-bin
|
dbeaver-bin
|
||||||
devenv
|
devenv
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
pkgs: lib:
|
pkgs: lib: let
|
||||||
let
|
|
||||||
rycee-addons = pkgs.nur.repos.rycee.firefox-addons;
|
rycee-addons = pkgs.nur.repos.rycee.firefox-addons;
|
||||||
custom-addons = import ./custom-addons.nix pkgs lib;
|
custom-addons = import ./custom-addons.nix pkgs lib;
|
||||||
in
|
in
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
pkgs: lib:
|
pkgs: lib: let
|
||||||
let
|
|
||||||
# Stolen from: https://github.com/nix-community/nur-combined/blob/master/repos/rycee/pkgs/firefox-addons/default.nix
|
# Stolen from: https://github.com/nix-community/nur-combined/blob/master/repos/rycee/pkgs/firefox-addons/default.nix
|
||||||
buildFirefoxXpiAddon = lib.makeOverridable ({ stdenv ? pkgs.stdenv
|
buildFirefoxXpiAddon = lib.makeOverridable ({
|
||||||
, fetchurl ? pkgs.fetchurl, pname, version, addonId, url, sha256, meta, ...
|
stdenv ? pkgs.stdenv,
|
||||||
|
fetchurl ? pkgs.fetchurl,
|
||||||
|
pname,
|
||||||
|
version,
|
||||||
|
addonId,
|
||||||
|
url,
|
||||||
|
sha256,
|
||||||
|
meta,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
@ -25,13 +32,11 @@ in {
|
||||||
pname = "http-version-indicator";
|
pname = "http-version-indicator";
|
||||||
version = "3.2.1";
|
version = "3.2.1";
|
||||||
addonId = "spdyindicator@chengsun.github.com";
|
addonId = "spdyindicator@chengsun.github.com";
|
||||||
url =
|
url = "https://addons.mozilla.org/firefox/downloads/file/3767224/http2_indicator-3.2.1.xpi";
|
||||||
"https://addons.mozilla.org/firefox/downloads/file/3767224/http2_indicator-3.2.1.xpi";
|
|
||||||
sha256 = "be9518017334ce502a1da514542c2ca4f974217d0c8e6c7c31d518aba57c09a8";
|
sha256 = "be9518017334ce502a1da514542c2ca4f974217d0c8e6c7c31d518aba57c09a8";
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/bsiegel/http-version-indicator";
|
homepage = "https://github.com/bsiegel/http-version-indicator";
|
||||||
description =
|
description = "An indicator showing the HTTP version used to load the page in the address bar.";
|
||||||
"An indicator showing the HTTP version used to load the page in the address bar.";
|
|
||||||
mozPermissions = ["<all_urls>" "tabs" "webNavigation" "webRequest"];
|
mozPermissions = ["<all_urls>" "tabs" "webNavigation" "webRequest"];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
|
@ -40,13 +45,11 @@ in {
|
||||||
pname = "indicatetls";
|
pname = "indicatetls";
|
||||||
version = "0.3.0";
|
version = "0.3.0";
|
||||||
addonId = "{252ee273-8c8d-4609-b54d-62ae345be0a1}";
|
addonId = "{252ee273-8c8d-4609-b54d-62ae345be0a1}";
|
||||||
url =
|
url = "https://addons.mozilla.org/firefox/downloads/file/3608595/indicatetls-0.3.0.xpi";
|
||||||
"https://addons.mozilla.org/firefox/downloads/file/3608595/indicatetls-0.3.0.xpi";
|
|
||||||
sha256 = "7a3b7edb1085f7b15d279c1013fac1d68f5247cfd6312d5275cb053e24a79465";
|
sha256 = "7a3b7edb1085f7b15d279c1013fac1d68f5247cfd6312d5275cb053e24a79465";
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/jannispinter/indicatetls";
|
homepage = "https://github.com/jannispinter/indicatetls";
|
||||||
description =
|
description = "Displays negotiated SSL/TLS protocol version and additional security information in the address bar";
|
||||||
"Displays negotiated SSL/TLS protocol version and additional security information in the address bar";
|
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
mozPermissions = [
|
mozPermissions = [
|
||||||
"tabs"
|
"tabs"
|
||||||
|
@ -63,13 +66,11 @@ in {
|
||||||
pname = "sixindicator";
|
pname = "sixindicator";
|
||||||
version = "1.3.0";
|
version = "1.3.0";
|
||||||
addonId = "{8c9cad02-c069-4e93-909d-d874da819c49}";
|
addonId = "{8c9cad02-c069-4e93-909d-d874da819c49}";
|
||||||
url =
|
url = "https://addons.mozilla.org/firefox/downloads/file/3493442/sixindicator-1.3.0.xpi";
|
||||||
"https://addons.mozilla.org/firefox/downloads/file/3493442/sixindicator-1.3.0.xpi";
|
|
||||||
sha256 = "415ab83ed4ac94d1efe114752a09df29536d1bd54cc9b7e5ce5d9ee55a84226d";
|
sha256 = "415ab83ed4ac94d1efe114752a09df29536d1bd54cc9b7e5ce5d9ee55a84226d";
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/HostedDinner/SixIndicator";
|
homepage = "https://github.com/HostedDinner/SixIndicator";
|
||||||
description =
|
description = "Shows a simple icon, if IPv6 or IPv4 was used for the request of the site. When clicking on the icon, more information is shown, like the number of requests per domain and if these requests were made via IPv6 or IPv4.";
|
||||||
"Shows a simple icon, if IPv6 or IPv4 was used for the request of the site. When clicking on the icon, more information is shown, like the number of requests per domain and if these requests were made via IPv6 or IPv4.";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
mozPermissions = ["tabs" "webRequest" "<all_urls>"];
|
mozPermissions = ["tabs" "webRequest" "<all_urls>"];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
@ -79,8 +80,7 @@ in {
|
||||||
pname = "simple-style-fox-2";
|
pname = "simple-style-fox-2";
|
||||||
version = "10.0";
|
version = "10.0";
|
||||||
addonId = "{317526c6-ff2b-49c9-822e-d77b4a3da1d1}";
|
addonId = "{317526c6-ff2b-49c9-822e-d77b4a3da1d1}";
|
||||||
url =
|
url = "https://addons.mozilla.org/firefox/downloads/file/3934220/simple_style_fox_2-10.0.xpi";
|
||||||
"https://addons.mozilla.org/firefox/downloads/file/3934220/simple_style_fox_2-10.0.xpi";
|
|
||||||
sha256 = "1aaac3ba08d21086d7087015f92a27661940df45a97bf5680588c883f799a97d";
|
sha256 = "1aaac3ba08d21086d7087015f92a27661940df45a97bf5680588c883f799a97d";
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple style fox 2";
|
description = "Simple style fox 2";
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{ pkgs, lib, ... }:
|
{
|
||||||
let
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
firefoxAddons = import ./addons.nix pkgs lib;
|
firefoxAddons = import ./addons.nix pkgs lib;
|
||||||
firefoxSettings = {
|
firefoxSettings = {
|
||||||
"browser.aboutConfig.showWarning" = false;
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
@ -14,8 +17,7 @@ let
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
config = {
|
config = {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
{ pkgs, lib, flake, config, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
flake,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home.packages = with pkgs; [gnome.gnome-tweaks];
|
home.packages = with pkgs; [gnome.gnome-tweaks];
|
||||||
|
|
||||||
dconf.settings = with lib.hm.gvariant; {
|
dconf.settings = with lib.hm.gvariant; {
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{ pkgs, lib, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
{ pkgs, config, lib, inputs, flake, system, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
flake,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
./lanzaboote.nix
|
./lanzaboote.nix
|
||||||
|
@ -122,7 +130,8 @@
|
||||||
hostPlatform = lib.mkDefault "x86_64-linux";
|
hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
"libfprint-2-tod1-goodix"
|
"libfprint-2-tod1-goodix"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,21 +2,25 @@
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = [
|
systemPackages =
|
||||||
|
[
|
||||||
pkgs.gnome.gnome-shell-extensions
|
pkgs.gnome.gnome-shell-extensions
|
||||||
] ++ (with pkgs.gnomeExtensions; [
|
]
|
||||||
|
++ (with pkgs.gnomeExtensions; [
|
||||||
pop-shell
|
pop-shell
|
||||||
window-is-ready-remover
|
window-is-ready-remover
|
||||||
random-wallpaper
|
random-wallpaper
|
||||||
workspaces-indicator-by-open-apps
|
workspaces-indicator-by-open-apps
|
||||||
]);
|
]);
|
||||||
|
|
||||||
gnome.excludePackages = (with pkgs; [
|
gnome.excludePackages =
|
||||||
|
(with pkgs; [
|
||||||
epiphany
|
epiphany
|
||||||
gnome-connections
|
gnome-connections
|
||||||
gnome-console
|
gnome-console
|
||||||
gnome-tour
|
gnome-tour
|
||||||
]) ++ (with pkgs.gnome; [
|
])
|
||||||
|
++ (with pkgs.gnome; [
|
||||||
geary
|
geary
|
||||||
gnome-calendar
|
gnome-calendar
|
||||||
gnome-clocks
|
gnome-clocks
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, inputs, ... }: {
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
inputs.lanzaboote.nixosModules.lanzaboote
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ inputs, pkgs, flake, ... }: {
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
flake,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [inputs.sops-nix.nixosModules.sops];
|
imports = [inputs.sops-nix.nixosModules.sops];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [sops];
|
environment.systemPackages = with pkgs; [sops];
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{ pkgs, inputs, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [inputs.stylix.nixosModules.stylix];
|
imports = [inputs.stylix.nixosModules.stylix];
|
||||||
|
|
||||||
stylix = {
|
stylix = {
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
{ lib, config, ... }: {
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = lib.mkDefault true;
|
useDHCP = lib.mkDefault true;
|
||||||
networkmanager.unmanaged = ["tailscale0"];
|
networkmanager.unmanaged = ["tailscale0"];
|
||||||
|
@ -10,12 +14,14 @@
|
||||||
dns = ["192.168.30.131"];
|
dns = ["192.168.30.131"];
|
||||||
autostart = false;
|
autostart = false;
|
||||||
mtu = 1412;
|
mtu = 1412;
|
||||||
peers = [{
|
peers = [
|
||||||
|
{
|
||||||
presharedKeyFile = config.sops.secrets."wireguard/home/presharedKey".path;
|
presharedKeyFile = config.sops.secrets."wireguard/home/presharedKey".path;
|
||||||
endpoint = "wg.kun.is:51820";
|
endpoint = "wg.kun.is:51820";
|
||||||
publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg=";
|
publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg=";
|
||||||
allowedIPs = ["0.0.0.0/0"];
|
allowedIPs = ["0.0.0.0/0"];
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
home-no-pihole = {
|
home-no-pihole = {
|
||||||
|
@ -24,12 +30,14 @@
|
||||||
dns = ["192.168.10.1"];
|
dns = ["192.168.10.1"];
|
||||||
autostart = false;
|
autostart = false;
|
||||||
mtu = 1412;
|
mtu = 1412;
|
||||||
peers = [{
|
peers = [
|
||||||
|
{
|
||||||
presharedKeyFile = config.sops.secrets."wireguard/home/presharedKey".path;
|
presharedKeyFile = config.sops.secrets."wireguard/home/presharedKey".path;
|
||||||
endpoint = "wg.kun.is:51820";
|
endpoint = "wg.kun.is:51820";
|
||||||
publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg=";
|
publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg=";
|
||||||
allowedIPs = ["0.0.0.0/0"];
|
allowedIPs = ["0.0.0.0/0"];
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
programs.alejandra.enable = true;
|
programs.alejandra.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue