Skip to content

Commit

Permalink
refactor: add missing files to SwarselSystems.org
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Dec 29, 2024
1 parent d538762 commit 8a7e610
Show file tree
Hide file tree
Showing 9 changed files with 473 additions and 128 deletions.
475 changes: 463 additions & 12 deletions SwarselSystems.org

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions hosts/darwin/nbm-imba-166/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ in
isBtrfs = false;
};
};


}
32 changes: 0 additions & 32 deletions hosts/home-manager/default/default.nix

This file was deleted.

25 changes: 1 addition & 24 deletions hosts/home/default/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ self, inputs, outputs, config, ... }:
{

imports = builtins.attrValues outputs.homeManagerModules;
imports = outputs.homeModules ++ outputs.mixedModules ++ (builtins.attrValues outputs.homeManagerModules);

nixpkgs = {
overlays = [ outputs.overlays.default ];
Expand All @@ -27,29 +27,6 @@
isLaptop = true;
isNixos = false;
wallpaper = self + /wallpaper/surfacewp.png;
temperatureHwmon = {
isAbsolutePath = true;
path = "/sys/devices/platform/thinkpad_hwmon/hwmon/";
input-filename = "temp1_input";
};
monitors = {
main = {
name = "California Institute of Technology 0x1407 Unknown";
mode = "1920x1080"; # TEMPLATE
scale = "1";
position = "2560,0";
workspace = "2:二";
output = "eDP-1";
};
};
inputs = {
"1:1:AT_Translated_Set_2_keyboard" = {
xkb_layout = "us";
xkb_options = "grp:win_space_toggle";
xkb_variant = "altgr-intl";
};
};
keybindings = { };
};

}
44 changes: 0 additions & 44 deletions hosts/nix-on-droid/magicant/default.nix

This file was deleted.

1 change: 0 additions & 1 deletion hosts/nixos/nbl-imba-2/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{ config, lib, modulesPath, ... }:

{
imports =
[
Expand Down
16 changes: 8 additions & 8 deletions hosts/nixos/toto/disk-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ in
content = {
inherit type subvolumes extraArgs;
postCreateHook = lib.mkIf config.swarselsystems.isImpermanence ''
MNTPOINT=$(mktemp -d)
mount "/dev/disk/by-label/nixos" "$MNTPOINT" -o subvolid=5
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
btrfs subvolume snapshot -r $MNTPOINT/root $MNTPOINT/root-blank
MNTPOINT=$(mktemp -d)
mount "/dev/disk/by-label/nixos" "$MNTPOINT" -o subvolid=5
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
btrfs subvolume snapshot -r $MNTPOINT/root $MNTPOINT/root-blank
'';
};
};
Expand All @@ -105,10 +105,10 @@ in
content = {
inherit type subvolumes extraArgs;
postCreateHook = lib.mkIf config.swarselsystems.isImpermanence ''
MNTPOINT=$(mktemp -d)
mount "/dev/mapper/cryptroot" "$MNTPOINT" -o subvolid=5
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
btrfs subvolume snapshot -r $MNTPOINT/root $MNTPOINT/root-blank
MNTPOINT=$(mktemp -d)
mount "/dev/mapper/cryptroot" "$MNTPOINT" -o subvolid=5
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
btrfs subvolume snapshot -r $MNTPOINT/root $MNTPOINT/root-blank
'';
};
};
Expand Down
3 changes: 0 additions & 3 deletions hosts/nixos/winters/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# 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, modulesPath, ... }:

{
Expand Down
3 changes: 1 addition & 2 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"aarch64-darwin"
];

pkgsFor = lib.genAttrs (import systems) (
system:
pkgsFor = lib.genAttrs (import systems) (system:
import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
Expand Down

0 comments on commit 8a7e610

Please sign in to comment.