mirror of
https://github.com/Smaug123/nix-dotfiles
synced 2025-10-13 10:28:39 +00:00
Compare commits
5 Commits
481a80e87c
...
3efd22bc6b
Author | SHA1 | Date | |
---|---|---|---|
|
3efd22bc6b | ||
|
3bfb4e7ec5 | ||
|
d857f7ab9f | ||
|
cb3c993507 | ||
|
14f21cb172 |
44
flake.lock
generated
44
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731473366,
|
"lastModified": 1733377410,
|
||||||
"narHash": "sha256-sE2WfD3YyNrCROfRZKqMDR77g3KV4FXUaJ7NWe+A7ro=",
|
"narHash": "sha256-tZ9JEAaHIs3TPdRZeZzHsnJmUilkcnVaUTvyprbRb1A=",
|
||||||
"owner": "tpwrules",
|
"owner": "tpwrules",
|
||||||
"repo": "nixos-apple-silicon",
|
"repo": "nixos-apple-silicon",
|
||||||
"rev": "3eee753e4b074790342fadb1c4e7183d037ddac4",
|
"rev": "e8c07c3ae199b55a8c1c35a7c067c5cef9c7e929",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -27,11 +27,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732603785,
|
"lastModified": 1733570843,
|
||||||
"narHash": "sha256-AEjWTJwOmSnVYsSJCojKgoguGfFfwel6z/6ud6UFMU8=",
|
"narHash": "sha256-sQJAxY1TYWD1UyibN/FnN97paTFuwBw3Vp3DNCyKsMk=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "6ab87b7c84d4ee873e937108c4ff80c015a40c7a",
|
"rev": "a35b08d09efda83625bef267eb24347b446c80b8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -49,11 +49,11 @@
|
|||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732813964,
|
"lastModified": 1734253225,
|
||||||
"narHash": "sha256-yz7vSHvlKMu5APs7lor5PyGTj5/QNmCEJs1T4tRiy5A=",
|
"narHash": "sha256-LnBb8SyY+WGmBtnQ9XmbpKPoGjOrf89T//xQsKZhJzE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "ceb935b70d456dffe6a8a2b7ffefc5b5be5a1818",
|
"rev": "d6353ce807b7845ffec114d234c90ece44c39122",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -102,11 +102,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732793095,
|
"lastModified": 1734093295,
|
||||||
"narHash": "sha256-6TrknJ8CpvSSF4gviQSeD+wyj3siRcMvdBKhOXkEMKU=",
|
"narHash": "sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "2f7739d01080feb4549524e8f6927669b61c6ee3",
|
"rev": "66c5d8b62818ec4c1edb3e941f55ef78df8141a8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -129,11 +129,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731139594,
|
"lastModified": 1733212471,
|
||||||
"narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=",
|
"narHash": "sha256-M1+uCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2",
|
"rev": "55d15ad12a74eb7d4646254e13638ad0c4128776",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -145,27 +145,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732749044,
|
"lastModified": 1734083684,
|
||||||
"narHash": "sha256-T38FQOg0BV5M8FN1712fovzNakSOENEYs+CSkg31C9Y=",
|
"narHash": "sha256-5fNndbndxSx5d+C/D0p/VF32xDiJCJzyOqorOYW4JEo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0c5b4ecbed5b155b705336aa96d878e55acd8685",
|
"rev": "314e12ba369ccdb9b352a4db26ff419f7c49fa84",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-24.05",
|
"ref": "nixos-24.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732617236,
|
"lastModified": 1733935885,
|
||||||
"narHash": "sha256-PYkz6U0bSEaEB1al7O1XsqVNeSNS+s3NVclJw7YC43w=",
|
"narHash": "sha256-xyiHLs6KJ1fxeGmcCxKjJE4yJknVJxbC8Y/ZRYyC8WE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "af51545ec9a44eadf3fe3547610a5cdd882bc34e",
|
"rev": "5a48e3c2e435e95103d56590188cfed7b70e108c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@@ -3,7 +3,31 @@
|
|||||||
../hardware/earthworm.nix
|
../hardware/earthworm.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.asahi.peripheralFirmwareDirectory = ../firmware;
|
hardware.asahi.peripheralFirmwareDirectory = ./../firmware;
|
||||||
|
hardware.asahi = {
|
||||||
|
useExperimentalGPUDriver = true;
|
||||||
|
experimentalGPUInstallMode = "overlay";
|
||||||
|
setupAsahiSound = true;
|
||||||
|
withRust = true;
|
||||||
|
};
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
|
programs.light.enable = true;
|
||||||
|
services.actkbd = {
|
||||||
|
enable = true;
|
||||||
|
bindings = [
|
||||||
|
{
|
||||||
|
keys = [225];
|
||||||
|
events = ["key"];
|
||||||
|
command = "${pkgs.light}/bin/light -A 10";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
keys = [224];
|
||||||
|
events = ["key"];
|
||||||
|
command = "${pkgs.light}/bin/light -U 10";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = false;
|
boot.loader.efi.canTouchEfiVariables = false;
|
||||||
@@ -14,6 +38,10 @@
|
|||||||
networking = {
|
networking = {
|
||||||
hostName = "earthworm";
|
hostName = "earthworm";
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
|
wireless.iwd = {
|
||||||
|
enable = true;
|
||||||
|
settings.General.EnableNetworkConfiguration = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
@@ -31,10 +59,11 @@
|
|||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.vim
|
pkgs.vim
|
||||||
pkgs.wget
|
pkgs.wget
|
||||||
|
pkgs.mesa-asahi-edge
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.loginShellInit = ''
|
environment.loginShellInit = ''
|
||||||
[[ "$(tty)" == /dev/tty1 ]] && sway
|
[[ "$(tty)" == /dev/tty1 ]] && export WLR_RENDER_NO_EXPLICIT_SYNC=1 && sway
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
@@ -277,7 +277,7 @@
|
|||||||
nixpkgs.csharp-ls
|
nixpkgs.csharp-ls
|
||||||
nixpkgs.netcoredbg
|
nixpkgs.netcoredbg
|
||||||
nixpkgs.nil
|
nixpkgs.nil
|
||||||
# nixpkgs.fsautocomplete
|
nixpkgs.fsautocomplete
|
||||||
nixpkgs.wget
|
nixpkgs.wget
|
||||||
nixpkgs.yt-dlp
|
nixpkgs.yt-dlp
|
||||||
nixpkgs.cmake
|
nixpkgs.cmake
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
{command = "${nixpkgs.waybar}/bin/waybar";}
|
{command = "${nixpkgs.waybar}/bin/waybar";}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
extraConfig = builtins.readFile ./sway.conf;
|
extraConfig = builtins.replaceStrings ["@@WL-COPY@@" "@@GRIM@@" "@@SLURP@@"] ["${nixpkgs.wl-clipboard}/bin/wl-copy" "${nixpkgs.grim}/bin/grim" "${nixpkgs.slurp}/bin/slurp"] (builtins.readFile ./sway.conf);
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
"menu" = "on-click";
|
"menu" = "on-click";
|
||||||
"menu-file" = ./modules/waybar/power_menu.xml;
|
"menu-file" = ./modules/waybar/power_menu.xml;
|
||||||
"menu-actions" = {
|
"menu-actions" = {
|
||||||
"shutdown" = "shutdown";
|
"shutdown" = "shutdown now";
|
||||||
"reboot" = "reboot";
|
"reboot" = "reboot";
|
||||||
"suspend" = "systemctl suspend";
|
"suspend" = "systemctl suspend";
|
||||||
"hibernate" = "systemctl hibernate";
|
"hibernate" = "systemctl hibernate";
|
||||||
|
@@ -34,3 +34,5 @@ PATH="$PATH:$HOME/.cargo/bin"
|
|||||||
if [[ -z "$TMUX" ]]; then
|
if [[ -z "$TMUX" ]]; then
|
||||||
tmux new-session -A -s default
|
tmux new-session -A -s default
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ttyctl -f
|
||||||
|
@@ -2,3 +2,12 @@ output Unknown-1 scale 2
|
|||||||
input * {
|
input * {
|
||||||
xkb_layout "gb"
|
xkb_layout "gb"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# capture all screens to clipboard
|
||||||
|
bindsym Shift+Print exec @@GRIM@@ - | @@WL-COPY@@
|
||||||
|
|
||||||
|
# capture the specified screen area to clipboard
|
||||||
|
bindsym Shift+Alt+Print exec @@GRIM@@ -g "$(@@SLURP@@)" - | @@WL-COPY@@
|
||||||
|
|
||||||
|
# capture the focused monitor to clipboard
|
||||||
|
bindsym Shift+Control+Print exec @@GRIM@@ -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') - | @@WL-COPY@@
|
||||||
|
Reference in New Issue
Block a user