Compare commits
2 Commits
798ff0bdc6
...
bf6789c6f9
Author | SHA1 | Date |
---|---|---|
Daan Vanoverloop | bf6789c6f9 | |
Daan Vanoverloop | 34f3b9d4de |
|
@ -13,29 +13,9 @@ in
|
||||||
(import "${home-manager}/nixos")
|
(import "${home-manager}/nixos")
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/".options = [ "compress=zstd" ];
|
||||||
{ device = "/dev/disk/by-uuid/d488d0d7-c1df-49b7-b713-2f6397bd86fb";
|
fileSystems."/home".options = [ "compress=zstd" ];
|
||||||
fsType = "btrfs";
|
fileSystems."/nix".options = [ "compress=zstd" "noatime" ];
|
||||||
options = [ "compress=zstd" "subvol=nixroot" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "/dev/disk/by-uuid/d488d0d7-c1df-49b7-b713-2f6397bd86fb";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd" "subvol=home" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" =
|
|
||||||
{ device = "/dev/disk/by-uuid/d488d0d7-c1df-49b7-b713-2f6397bd86fb";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd" "noatime" "subvol=nix" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/B0E9-D206";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
@ -103,12 +83,12 @@ in
|
||||||
#media-session.enable = true;
|
#media-session.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with 'passwd'.
|
||||||
users.users.daan = {
|
users.users.daan = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Daan Vanoverloop";
|
description = "Daan Vanoverloop";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
shell = pkgs.zsh;
|
# shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.daan = { pkgs, ... }: {
|
home-manager.users.daan = { pkgs, ... }: {
|
||||||
|
@ -117,8 +97,24 @@ in
|
||||||
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
|
|
||||||
|
imports = [ ./dconf.nix ./gnome.nix ];
|
||||||
|
|
||||||
|
home.sessionVariables = { GTK_THEME = "Adwaita:dark"; };
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
programs.helix = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
theme = "onedark";
|
||||||
|
editor = {
|
||||||
|
line-number = "relative";
|
||||||
|
cursor-shape.insert = "bar";
|
||||||
|
soft-wrap.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
@ -129,6 +125,7 @@ in
|
||||||
EDITOR = "hx";
|
EDITOR = "hx";
|
||||||
TERM = "xterm-256color";
|
TERM = "xterm-256color";
|
||||||
COLORTERM = "truecolor";
|
COLORTERM = "truecolor";
|
||||||
|
NIX_BUILD_SHELL = "zsh";
|
||||||
};
|
};
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -142,13 +139,19 @@ in
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nil
|
nil
|
||||||
|
jellyfin-media-player
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.kdeconnect = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.gnomeExtensions.gsconnect;
|
||||||
|
};
|
||||||
|
|
||||||
|
# programs.zsh.enable = true;
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
|
@ -160,6 +163,10 @@ in
|
||||||
openssh
|
openssh
|
||||||
];
|
];
|
||||||
|
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [
|
||||||
|
intel-media-driver
|
||||||
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|
|
@ -0,0 +1,66 @@
|
||||||
|
# Generated via dconf2nix: https://github.com/gvolpe/dconf2nix
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
with lib.hm.gvariant;
|
||||||
|
|
||||||
|
{
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/desktop/input-sources" = {
|
||||||
|
sources = [ (mkTuple [ "xkb" "us" ]) ];
|
||||||
|
xkb-options = [ "eurosign:e" "caps:escape" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
color-scheme = "prefer-dark";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/peripherals/touchpad" = {
|
||||||
|
tap-to-click = true;
|
||||||
|
two-finger-scrolling-enabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/wm/keybindings" = {
|
||||||
|
close = [ "<Shift><Super>q" ];
|
||||||
|
move-to-workspace-1 = [ "<Shift><Super>1" ];
|
||||||
|
move-to-workspace-2 = [ "<Shift><Super>2" ];
|
||||||
|
move-to-workspace-3 = [ "<Shift><Super>3" ];
|
||||||
|
move-to-workspace-4 = [ "<Shift><Super>4" ];
|
||||||
|
move-to-workspace-5 = [ "<Shift><Super>5" ];
|
||||||
|
move-to-workspace-6 = [ "<Shift><Super>6" ];
|
||||||
|
move-to-workspace-7 = [ "<Shift><Super>7" ];
|
||||||
|
move-to-workspace-8 = [ "<Shift><Super>8" ];
|
||||||
|
move-to-workspace-9 = [ "<Shift><Super>9" ];
|
||||||
|
switch-to-workspace-1 = [ "<Super>1" ];
|
||||||
|
switch-to-workspace-2 = [ "<Super>2" ];
|
||||||
|
switch-to-workspace-3 = [ "<Super>3" ];
|
||||||
|
switch-to-workspace-4 = [ "<Super>4" ];
|
||||||
|
switch-to-workspace-5 = [ "<Super>5" ];
|
||||||
|
switch-to-workspace-6 = [ "<Super>6" ];
|
||||||
|
switch-to-workspace-7 = [ "<Super>7" ];
|
||||||
|
switch-to-workspace-8 = [ "<Super>8" ];
|
||||||
|
switch-to-workspace-9 = [ "<Super>9" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||||
|
custom-keybindings = [ "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
||||||
|
binding = "<Super>Return";
|
||||||
|
command = "kgx";
|
||||||
|
name = "Terminal";
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/shell/keybindings" = {
|
||||||
|
switch-to-application-1 = [ "" ];
|
||||||
|
switch-to-application-2 = [ "" ];
|
||||||
|
switch-to-application-3 = [ "" ];
|
||||||
|
switch-to-application-4 = [ "" ];
|
||||||
|
switch-to-application-5 = [ "" ];
|
||||||
|
switch-to-application-6 = [ "" ];
|
||||||
|
switch-to-application-7 = [ "" ];
|
||||||
|
switch-to-application-8 = [ "" ];
|
||||||
|
switch-to-application-9 = [ "" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
rec {
|
||||||
|
home.packages = with pkgs.gnomeExtensions; [
|
||||||
|
gsconnect
|
||||||
|
vitals
|
||||||
|
caffeine
|
||||||
|
];
|
||||||
|
|
||||||
|
dconf.settings = {
|
||||||
|
# Enable installed extensions
|
||||||
|
"org/gnome/shell".enabled-extensions = map (extension: extension.extensionUuid) home.packages;
|
||||||
|
|
||||||
|
"org/gnome/shell".disabled-extensions = [];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue