mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Compare commits
7 commits
caadc265e4
...
b3c6744da5
| Author | SHA1 | Date | |
|---|---|---|---|
| b3c6744da5 | |||
| a57af732e9 | |||
| cc13b4d51e | |||
| c72ef76b20 | |||
| 412480f14c | |||
| 20bd1bc6fe | |||
| 9d6cc4b934 |
5 changed files with 22 additions and 14 deletions
|
|
@ -32,7 +32,10 @@ This repo is managed with Nix + GNU stow
|
||||||
nixos-generate-config --no-filesystems --root /mnt --dir . # disko will take care of the file system configuration
|
nixos-generate-config --no-filesystems --root /mnt --dir . # disko will take care of the file system configuration
|
||||||
# put the generated config in the right path and import it
|
# put the generated config in the right path and import it
|
||||||
|
|
||||||
nixos-install --flake .dotfiles#<hostname>
|
# We do -j 1 because otherwise the kernel or the fonts might use too much
|
||||||
|
# memory at the same time and the system will kaput
|
||||||
|
nixos-install --flake .dotfiles#<hostname> -j 1
|
||||||
|
|
||||||
# profit
|
# profit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,4 +70,8 @@
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options cfg80211 ieee80211_regdom="US"
|
options cfg80211 ieee80211_regdom="US"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# If we run out of memory during building, the machine would hang, and that sucks.
|
||||||
|
# Nothing worse than restarting the installation from scratch
|
||||||
|
services.earlyoom.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
import XMonad
|
import XMonad
|
||||||
import XMonad.Actions.CopyWindow
|
import XMonad.Actions.CopyWindow
|
||||||
import XMonad.Actions.Sift
|
|
||||||
import XMonad.Actions.Submap
|
import XMonad.Actions.Submap
|
||||||
import XMonad.Actions.SwapWorkspaces
|
import XMonad.Actions.SwapWorkspaces
|
||||||
import XMonad.Hooks.DynamicLog
|
import XMonad.Hooks.DynamicLog
|
||||||
|
|
@ -159,19 +158,22 @@ myManageHook =
|
||||||
, isPavucontrol --> customFloating centeredFloat
|
, isPavucontrol --> customFloating centeredFloat
|
||||||
, isFeh --> doF copyToAll <> customFloating buttomRightFloat
|
, isFeh --> doF copyToAll <> customFloating buttomRightFloat
|
||||||
, isMinder --> customFloating centeredFloat
|
, isMinder --> customFloating centeredFloat
|
||||||
, isFirefoxPip --> doF copyToAll <> customFloating buttomRightFloat
|
|
||||||
, isDiscord --> doShift chatWS
|
, isDiscord --> doShift chatWS
|
||||||
, isEvolution --> doShift chatWS
|
, isEvolution --> doShift chatWS
|
||||||
, isSignal --> doShift chatWS
|
, isSignal --> doShift chatWS
|
||||||
, isFirefox --> insertPosition Master Newer
|
, isFirefox --> insertPosition Master Newer
|
||||||
, isKitty --> insertPosition Below Newer
|
, isKitty --> insertPosition Below Newer
|
||||||
, isNautilus <||> isSioyek --> insertPosition End Older
|
, isNautilus <||> isSioyek --> insertPosition End Older
|
||||||
|
|
||||||
, isUtility --> doIgnore
|
|
||||||
, isDialog --> doF copyToAll <> customFloating centeredFloat
|
|
||||||
, isEvolutionComposer --> customFloating centeredFloat
|
|
||||||
]
|
]
|
||||||
<> namedScratchpadManageHook myScratchpads
|
-- Note: some rules here are overlapping, the first one will take the precedence (composeOne)
|
||||||
|
-- e.g. firefoxpip is a utility window
|
||||||
|
<> composeOne
|
||||||
|
[ isFirefoxPip -?> doF copyToAll <> customFloating buttomRightFloat
|
||||||
|
, isUtility -?> doIgnore
|
||||||
|
, isDialog -?> customFloating centeredFloat
|
||||||
|
, isEvolutionComposer -?> customFloating centeredFloat
|
||||||
|
]
|
||||||
|
<> namedScratchpadManageHook myScratchpads
|
||||||
|
|
||||||
-- TODO: is there a way to always open certain sites in new windows in firefox?
|
-- TODO: is there a way to always open certain sites in new windows in firefox?
|
||||||
-- TODO: stop full screen when move happens
|
-- TODO: stop full screen when move happens
|
||||||
|
|
@ -264,10 +266,6 @@ keybinds =
|
||||||
-- Toggle fullscreen
|
-- Toggle fullscreen
|
||||||
, ((superMask, xK_Escape), sendMessage NextLayout)
|
, ((superMask, xK_Escape), sendMessage NextLayout)
|
||||||
|
|
||||||
-- Sift instead of swap
|
|
||||||
, ((superMask .|. shiftMask, xK_j), windows siftDown)
|
|
||||||
, ((superMask .|. shiftMask, xK_k), windows siftUp )
|
|
||||||
|
|
||||||
-- Resize windows
|
-- Resize windows
|
||||||
, ((superMask, xK_equal ), sendMessage $ IncMasterN 1)
|
, ((superMask, xK_equal ), sendMessage $ IncMasterN 1)
|
||||||
, ((superMask, xK_minus ), sendMessage $ IncMasterN -1)
|
, ((superMask, xK_minus ), sendMessage $ IncMasterN -1)
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,9 @@
|
||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
# Since we don't have a lot of swap, we make sure we kill the processes and not halt the machine
|
||||||
|
earlyoom.enable = true;
|
||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
authentication = lib.mkOverride 10 ''
|
authentication = lib.mkOverride 10 ''
|
||||||
|
|
|
||||||
|
|
@ -71,9 +71,9 @@
|
||||||
},
|
},
|
||||||
"branch": "taiwanese",
|
"branch": "taiwanese",
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"revision": "48a7a51516302e070479156b54d2911ba9fbfce8",
|
"revision": "cba16e03fd43b1ee8a15d20e14ecf0fb1c6762fa",
|
||||||
"url": null,
|
"url": null,
|
||||||
"hash": "07d2mzjnggbxlpqarcj65xdndkqxcab38lkbbqh65cyfqzqahdg0",
|
"hash": "0ryb3cng4py2zrm95p5ial9w13p7w4ws0bl0lddrij1sq42kzg8l",
|
||||||
"frozen": true
|
"frozen": true
|
||||||
},
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue