added vm build

This commit is contained in:
Morten Olsen
2023-09-26 23:06:26 +02:00
parent c0aeb8ec57
commit d4cb33b54d
10 changed files with 144 additions and 2 deletions

66
user/dconf.nix Normal file
View File

@@ -0,0 +1,66 @@
{ config, pkgs, lib, ... }:
let
mkTuple = lib.hm.gvariant.mkTuple;
in
{
dconf.settings = {
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
binding = "<Super>Return";
command = "kitty";
name = "Launch console";
};
"org/gnome/settings-daemon/plugins/media-keys" = {
custom-keybindings = [
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
];
www = ["<Shift><Super>Return"];
};
"org/gnome/desktop/wm/keybindings" = {
close = ["<Super>q"];
minimize = ["<Super>h"];
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-left=["<Shift><Super>h"];
move-to-workspace-right=["<Shift><Super>l"];
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-left=["<Super>h"];
switch-to-workspace-right=["<Super>l"];
toggle-fullscreen=["<Super>f"];
toggle-on-all-workspaces=["<Super>p"];
};
"org/gnome/desktop/wm/preferences" = {
workspace-names=["General" "Terminal"];
};
"org/gnome/desktop/interface" = {
color-scheme="prefer-dark";
scaling-factor=1.5;
show-battery-percentage=false;
};
"org/gnome/desktop/background" = {
color-shading-type="solid";
picture-options="zoom";
picture-uri="file:///home/alice/.wallpaper.jpg";
picture-uri-dark="file:///home/alice/.wallpaper.jpg";
primary-color="#000000000000";
secondary-color="#000000000000";
};
"org/gnome/desktop/input-sources" = {
sources=[
(mkTuple["xkb" "dk"])
(mkTuple["xkb" "us"])
];
xkb-options=["caps:escape"];
};
};
}

View File

@@ -5,11 +5,16 @@
home.homeDirectory = "/home/alice";
imports = [
./dconf.nix
./programs/terminal
./programs/kitty
./programs/firefox
];
home.file = {
".wallpaper.jpg".source = ./wallpaper.jpg;
};
home.stateVersion = "23.11";
home.packages = [
pkgs.spotify

View File

@@ -5,12 +5,14 @@
enable = true;
font = {
name = "FiraCode Nerd Font Mono Reg";
size = 12;
size = 10;
package = (pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; });
};
settings = {
# Enable ligatures
draw_ligatures = true;
linux_display_server = "x11";
#hide_window_decorations = true;
italic_font = "auto";
bold_italic_font = "auto";

BIN
user/wallpaper.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB