mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-26 07:43:45 +01:00
chore: some restructuring of desktops
This commit is contained in:
parent
c854f7145c
commit
b98e1e5dd7
3
TODO.md
3
TODO.md
@ -4,11 +4,8 @@
|
|||||||
|
|
||||||
* clickup (package https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-appimageTools)
|
* clickup (package https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-appimageTools)
|
||||||
* curseforge (package)
|
* curseforge (package)
|
||||||
* mail (thunderbird / mailspring / prospect-mail)
|
|
||||||
* assign windows to right desktop
|
* assign windows to right desktop
|
||||||
* autostart standard tools on desktops
|
* autostart standard tools on desktops
|
||||||
* ymuse for mpd
|
|
||||||
* gnome with https://gvolpe.com/blog/gnome3-on-nixos/
|
|
||||||
|
|
||||||
## server
|
## server
|
||||||
|
|
||||||
|
@ -16,21 +16,19 @@
|
|||||||
canTouchEfiVariables = true;
|
canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
grub = {
|
systemd-boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
version = 2;
|
consoleMode = "2";
|
||||||
device = "nodev";
|
configurationLimit = 5;
|
||||||
efiSupport = true;
|
editor = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# kernelParams = [ "intel_pstate=no_hwp" ];
|
|
||||||
|
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||||
|
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "acpi_call" "cryptd" ];
|
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "acpi_call" ];
|
||||||
kernelModules = [ "dm-snapshot" ];
|
kernelModules = [ "dm-snapshot" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,21 +1,6 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
boot = {
|
|
||||||
initrd = {
|
|
||||||
luks = {
|
|
||||||
devices = {
|
|
||||||
luks = {
|
|
||||||
name = "luks";
|
|
||||||
device = "/dev/disk/by-partlabel/system";
|
|
||||||
preLVM = true;
|
|
||||||
allowDiscards = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [{
|
swapDevices = [{
|
||||||
device = "/dev/disk/by-label/swap";
|
device = "/dev/disk/by-label/swap";
|
||||||
}];
|
}];
|
||||||
|
@ -61,17 +61,11 @@ echo "-----> Wait for partitions"
|
|||||||
sleep 3
|
sleep 3
|
||||||
sync
|
sync
|
||||||
|
|
||||||
echo "-----> Format encrypted container"
|
|
||||||
cryptsetup luksFormat /dev/disk/by-partlabel/system
|
|
||||||
|
|
||||||
echo "-----> Open encrypted container"
|
|
||||||
cryptsetup luksOpen /dev/disk/by-partlabel/system crypted
|
|
||||||
|
|
||||||
echo "-----> Create data pv"
|
echo "-----> Create data pv"
|
||||||
pvcreate /dev/mapper/crypted
|
pvcreate /dev/disk/by-partlabel/system
|
||||||
|
|
||||||
echo "-----> Create data vg"
|
echo "-----> Create data vg"
|
||||||
vgcreate system /dev/mapper/crypted
|
vgcreate system /dev/disk/by-partlabel/system
|
||||||
|
|
||||||
echo "-----> Create swap volume"
|
echo "-----> Create swap volume"
|
||||||
lvcreate -y --size $(cat /proc/meminfo | grep MemTotal | cut -d':' -f2 | sed 's/ //g') --name swap system
|
lvcreate -y --size $(cat /proc/meminfo | grep MemTotal | cut -d':' -f2 | sed 's/ //g') --name swap system
|
||||||
@ -80,7 +74,7 @@ echo "-----> Create root volume"
|
|||||||
lvcreate -y --size 20G --name root system
|
lvcreate -y --size 20G --name root system
|
||||||
|
|
||||||
echo "-----> Create nix volume"
|
echo "-----> Create nix volume"
|
||||||
lvcreate -y --size 50G --name nix system
|
lvcreate -y --size 100G --name nix system
|
||||||
|
|
||||||
echo "-----> Create home volume"
|
echo "-----> Create home volume"
|
||||||
lvcreate -y --size 50G --name home system
|
lvcreate -y --size 50G --name home system
|
||||||
|
@ -74,7 +74,7 @@ echo "-----> Create root volume"
|
|||||||
lvcreate -y --size 20G --name root system
|
lvcreate -y --size 20G --name root system
|
||||||
|
|
||||||
echo "-----> Create nix volume"
|
echo "-----> Create nix volume"
|
||||||
lvcreate -y --size 50G --name nix system
|
lvcreate -y --size 100G --name nix system
|
||||||
|
|
||||||
echo "-----> Create home volume"
|
echo "-----> Create home volume"
|
||||||
lvcreate -y --size 50G --name home system
|
lvcreate -y --size 50G --name home system
|
||||||
|
@ -74,7 +74,7 @@ echo "-----> Create root volume"
|
|||||||
lvcreate -y --size 20G --name root system
|
lvcreate -y --size 20G --name root system
|
||||||
|
|
||||||
echo "-----> Create nix volume"
|
echo "-----> Create nix volume"
|
||||||
lvcreate -y --size 50G --name nix system
|
lvcreate -y --size 100G --name nix system
|
||||||
|
|
||||||
echo "-----> Create home volume"
|
echo "-----> Create home volume"
|
||||||
lvcreate -y --size 50G --name home system
|
lvcreate -y --size 50G --name home system
|
||||||
|
30
flake.lock
30
flake.lock
@ -49,11 +49,11 @@
|
|||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1659725433,
|
"lastModified": 1668797197,
|
||||||
"narHash": "sha256-1ZxuK67TL29YLw88vQ18Y2Y6iYg8Jb7I6/HVzmNB6nM=",
|
"narHash": "sha256-0w6iD3GSSQbIeSFVDzAAQZB+hDq670ZTms3d9XI+BtM=",
|
||||||
"owner": "serokell",
|
"owner": "serokell",
|
||||||
"repo": "deploy-rs",
|
"repo": "deploy-rs",
|
||||||
"rev": "41f15759dd8b638e7b4f299730d94d5aa46ab7eb",
|
"rev": "2a3c5f70eee04a465aa534d8bd4fcc9bb3c4a8ce",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -80,11 +80,11 @@
|
|||||||
},
|
},
|
||||||
"hardware": {
|
"hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667768008,
|
"lastModified": 1669146234,
|
||||||
"narHash": "sha256-PGbX0s2hhXGnZDFVE6UIhPSOf5YegpWs5dUXpT/14F0=",
|
"narHash": "sha256-HEby7EG1yaq1oT2Ze6Cvok9CFju1XHkSvVHmkptLW9U=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "f6483e0def85efb9c1e884efbaff45a5e7aabb34",
|
"rev": "0099253ad0b5283f06ffe31cf010af3f9ad7837d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -101,11 +101,11 @@
|
|||||||
"utils": "utils_2"
|
"utils": "utils_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667708081,
|
"lastModified": 1669071065,
|
||||||
"narHash": "sha256-FChEy05x4ed/pttjfTeKxjPCnHknMYrUtDyBiYbreT4=",
|
"narHash": "sha256-KBpgj3JkvlPsJ3duOZqFJe6tgr+wc75t8sFmgRbBSbw=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "1ef0da321217c6c19b7a30509631c080a19321e5",
|
"rev": "f7641a3ff398ccce952e19a199d775934e518c1d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -116,11 +116,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667629849,
|
"lastModified": 1669052418,
|
||||||
"narHash": "sha256-P+v+nDOFWicM4wziFK9S/ajF2lc0N2Rg9p6Y35uMoZI=",
|
"narHash": "sha256-M1I4BKXBQm2gey1tScemEh5TpHHE3gKptL7BpWUvL8s=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "3bacde6273b09a21a8ccfba15586fb165078fb62",
|
"rev": "20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -132,11 +132,11 @@
|
|||||||
},
|
},
|
||||||
"nur": {
|
"nur": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1668038359,
|
"lastModified": 1669182177,
|
||||||
"narHash": "sha256-xsEG4/ZoUpG7VWymXgRD2MAN0nkKneeD84f4RUpsNic=",
|
"narHash": "sha256-U3Bp+pZN58lEqlk1hoTyCGUckFpZfXW2b14p1NGymyY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "71dadb246555d9acab72a953cdb051dcbd926464",
|
"rev": "6ccbe180fc646a7672cede9fa008fd30d744d0c8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
./lens.nix
|
./lens.nix
|
||||||
./lsd.nix
|
./lsd.nix
|
||||||
./lutris.nix
|
./lutris.nix
|
||||||
|
./mailspring.nix
|
||||||
./mattermost.nix
|
./mattermost.nix
|
||||||
./minecraft.nix
|
./minecraft.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
@ -33,7 +34,6 @@
|
|||||||
./steam.nix
|
./steam.nix
|
||||||
./teams.nix
|
./teams.nix
|
||||||
./telegram.nix
|
./telegram.nix
|
||||||
./thunderbird.nix
|
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./whatsapp.nix
|
./whatsapp.nix
|
||||||
./wine.nix
|
./wine.nix
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.profile.programs.thunderbird;
|
cfg = config.profile.programs.mailspring;
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
profile = {
|
profile = {
|
||||||
programs = {
|
programs = {
|
||||||
thunderbird = {
|
mailspring = {
|
||||||
enable = mkEnableOption "Thunderbird";
|
enable = mkEnableOption "Mailspring";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -19,7 +19,7 @@ in
|
|||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
thunderbird-bin
|
mailspring
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
@ -17,6 +17,12 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
ymuse
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users."${config.profile.username}" = { config, ... }: {
|
home-manager.users."${config.profile.username}" = { config, ... }: {
|
||||||
programs = {
|
programs = {
|
||||||
ncmpcpp = {
|
ncmpcpp = {
|
||||||
|
@ -71,7 +71,7 @@ in
|
|||||||
lutris = {
|
lutris = {
|
||||||
enable = desktop;
|
enable = desktop;
|
||||||
};
|
};
|
||||||
thunderbird = {
|
mailspring = {
|
||||||
enable = desktop;
|
enable = desktop;
|
||||||
};
|
};
|
||||||
mattermost = {
|
mattermost = {
|
||||||
@ -235,7 +235,7 @@ in
|
|||||||
};
|
};
|
||||||
} else { });
|
} else { });
|
||||||
|
|
||||||
stateVersion = "18.09";
|
stateVersion = "22.11";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ pkgs, lib, config, options, ... }:
|
{ pkgs, lib, config, options, inputs, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
|
with inputs.homemanager.lib.hm.gvariant;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.profile.desktop.gnome;
|
cfg = config.profile.desktop.gnome;
|
||||||
@ -77,22 +78,103 @@ in
|
|||||||
|
|
||||||
gnomeExtensions.calc
|
gnomeExtensions.calc
|
||||||
gnomeExtensions.clipman
|
gnomeExtensions.clipman
|
||||||
gnomeExtensions.ddterm
|
|
||||||
gnomeExtensions.docker
|
|
||||||
gnomeExtensions.espresso
|
gnomeExtensions.espresso
|
||||||
gnomeExtensions.gsnap
|
gnomeExtensions.gsnap
|
||||||
gnomeExtensions.gtile
|
gnomeExtensions.gtile
|
||||||
gnomeExtensions.keyman
|
gnomeExtensions.keyman
|
||||||
gnomeExtensions.vitals
|
gnomeExtensions.vitals
|
||||||
gnomeExtensions.weather
|
|
||||||
gnomeExtensions.zilence
|
|
||||||
];
|
];
|
||||||
|
|
||||||
gnome = {
|
gnome = {
|
||||||
excludePackages = with pkgs; [
|
excludePackages = with pkgs; [
|
||||||
gnome-tour
|
gnome-tour
|
||||||
|
|
||||||
|
gnomeExtensions.applications-menu
|
||||||
|
gnomeExtensions.launch-new-instance
|
||||||
|
gnomeExtensions.places-status-indicator
|
||||||
|
gnomeExtensions.screenshot-window-sizer
|
||||||
|
gnomeExtensions.user-themes
|
||||||
|
gnomeExtensions.weather
|
||||||
|
gnomeExtensions.window-list
|
||||||
|
gnomeExtensions.workspace-indicator
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users."${config.profile.username}" = { config, ... }: {
|
||||||
|
dconf = {
|
||||||
|
settings = {
|
||||||
|
"org/gnome/desktop/calendar" = {
|
||||||
|
show-weekdate = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/input-sources" = {
|
||||||
|
sources = [ (mkTuple [ "xkb" "de" ]) ];
|
||||||
|
xkb-options = [ "eurosign:e" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
clock-show-weekday = true;
|
||||||
|
show-battery-percentage = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/peripherals/touchpad" = {
|
||||||
|
tap-to-click = true;
|
||||||
|
two-finger-scrolling-enabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/wm/preferences" = {
|
||||||
|
button-layout = "appmenu:minimize,maximize,close";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/login-screen" = {
|
||||||
|
disable-user-list = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/mutter" = {
|
||||||
|
attach-modal-dialogs = true;
|
||||||
|
dynamic-workspaces = true;
|
||||||
|
edge-tiling = true;
|
||||||
|
focus-change-on-pointer-rest = true;
|
||||||
|
workspaces-only-on-primary = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/shell" = {
|
||||||
|
enabled-extensions = [
|
||||||
|
"auto-move-windows@gnome-shell-extensions.gcampax.github.com"
|
||||||
|
"calc@danigm.wadobo.com"
|
||||||
|
"clipman@popov895.ukr.net"
|
||||||
|
"drive-menu@gnome-shell-extensions.gcampax.github.com"
|
||||||
|
"espresso@coadmunkee.github.com"
|
||||||
|
"gSnap@micahosborne"
|
||||||
|
"gTile@vibou"
|
||||||
|
"keyman@dpoetzsch.github.com"
|
||||||
|
"native-window-placement@gnome-shell-extensions.gcampax.github.com"
|
||||||
|
"Vitals@CoreCoding.com"
|
||||||
|
"windowsNavigator@gnome-shell-extensions.gcampax.github.com"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/shell/extensions/espresso" = {
|
||||||
|
has-battery = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/shell/extensions/vitals" = {
|
||||||
|
show-fan = true;
|
||||||
|
show-storage = false;
|
||||||
|
show-temperature = true;
|
||||||
|
show-voltage = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/tweaks" = {
|
||||||
|
show-extensions-notice = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
"system/locale" = {
|
||||||
|
region = "de_DE.UTF-8";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,8 @@ let
|
|||||||
|
|
||||||
mail = [
|
mail = [
|
||||||
{
|
{
|
||||||
exec = "thunderbird";
|
exec = "mailspring";
|
||||||
class = "thunderbird";
|
class = "mailspring";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user