1
0
Fork 0
forked from emily/nixfiles
This commit is contained in:
emily 2024-02-28 22:43:20 +01:00
parent 66f3a19d26
commit f05fcc34b8
Signed by untrusted user: emily
GPG key ID: F6F4C66207FCF995
10 changed files with 55 additions and 19 deletions

View file

@ -2,10 +2,25 @@
## First deployment ## First deployment
### remote hosts
```console ```console
$ nix run github:nix-community/nixos-anywhere -- --flake ".#<configuration>" root@<target-host> $ nix run github:nix-community/nixos-anywhere -- --flake ".#<configuration>" root@<target-host>
``` ```
### desktops
```console
$ nix --extra-experimental-features nix-command run github:nix-community/nixos-anywhere -- --flake "git+https://git.bsd.gay/snaki/nixfiles.git#<configuration>" --no-reboot --build-on-target root@127.0.0.1
$ nixos-enter
$ passwd <local-user>
reboot
$ git clone https://git.bsd.gay/snaki/nixfiles.git
$ colmena apply-local --sudo --node <node>
```
## Deploy changes on ... ## Deploy changes on ...
### all hosts ### all hosts

View file

@ -24,6 +24,7 @@
htop htop
restic restic
] ++ lib.optionals config.kyouma.machine-type.graphical [ ] ++ lib.optionals config.kyouma.machine-type.graphical [
colmena
thunderbird thunderbird
obsidian obsidian
krita krita
@ -40,10 +41,11 @@
slurp slurp
grim grim
gnome.simple-scan gnome.simple-scan
gnome.nautilus cinnamon.nemo
imagemagick_light imagemagick_light
#ubuntu_font_family #ubuntu_font_family
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
jetbrains-mono jetbrains-mono
font-awesome font-awesome
]; ];

View file

@ -9,6 +9,8 @@
deployment.allowLocalDeployment = true; deployment.allowLocalDeployment = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;
boot.plymouth.enable = true;
services.geoclue2.enable = true; services.geoclue2.enable = true;
@ -25,7 +27,11 @@
MOZ_ENABLE_WAYLAND = "1"; MOZ_ENABLE_WAYLAND = "1";
CLUTTER_BACKEND = "wayland"; CLUTTER_BACKEND = "wayland";
}; };
xdg.portal.wlr.enable = true; xdg.portal = {
enable = true;
wlr.enable = true;
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
};
stylix= { stylix= {
image = pkgs.fetchurl { image = pkgs.fetchurl {
@ -42,7 +48,7 @@
serif = config.stylix.fonts.sansSerif; serif = config.stylix.fonts.sansSerif;
monospace = { monospace = {
package = pkgs.jetbrains-mono; package = pkgs.jetbrains-mono;
name = "JetBrainsMono-Regular"; name = "JetBrains Mono Regular";
}; };
sizes.terminal = 11; sizes.terminal = 11;
}; };
@ -53,6 +59,7 @@
}; };
targets = { targets = {
console.enable = false; console.enable = false;
gnome.enable = true;
fish.enable = false; fish.enable = false;
}; };
}; };
@ -398,6 +405,8 @@
}; };
programs.imv.enable = true; programs.imv.enable = true;
programs.swaylock.enable = true;
programs.wpaperd = { programs.wpaperd = {
enable = true; enable = true;
@ -465,11 +474,11 @@
cpu = { cpu = {
format = " {usage:02}"; format = " {usage:02}";
interval = 2; interval = 2;
on-click = "kitty -e htop"; on-click = "${pkgs.kitty}/bin/kitty -e ${pkgs.htop}/bin/htop";
}; };
memory = { memory = {
format = " {used:0.2f}"; format = " {used:0.2f}";
on-click = "kitty -e htop"; on-click = "${pkgs.kitty}/bin/kitty -e ${pkgs.htop}/bin/htop";
}; };
temperature = { temperature = {
hwmon-path = "/sys/class/hwmon/hwmon1/temp1_input"; hwmon-path = "/sys/class/hwmon/hwmon1/temp1_input";
@ -488,9 +497,9 @@
warning = 30; warning = 30;
critical = 15; critical = 15;
}; };
format = "\uf1e6"; format = "";
format-discharging = "{icon} {capacity: >3}% {power:0.1f}W"; format-discharging = "{icon} {capacity: >3}% {power:0.1f}W";
format-charging = "\uf1e6 {capacity: >3}% {power:0.1f}W"; format-charging = " {capacity: >3}% {power:0.1f}W";
interval = 3; interval = 3;
format-icons = ["" "" "" "" ""]; format-icons = ["" "" "" "" ""];
}; };
@ -499,7 +508,7 @@
format-wifi = " {essid}"; format-wifi = " {essid}";
format-ethernet = " Wired"; format-ethernet = " Wired";
format-disconnected = " Disconnected"; format-disconnected = " Disconnected";
on-click = "${networkmanagerapplet}/bin/nm-connection-editor"; on-click = "${pkgs.networkmanagerapplet}/bin/nm-connection-editor";
}; };
pulseaudio = { pulseaudio = {
scroll-step = 5; scroll-step = 5;
@ -623,6 +632,15 @@
services.syncthing = { services.syncthing = {
enable = true; enable = true;
tray.enable = true; tray.enable = true;
tray.command = "syncthingtray --wait";
};
services.udiskie = {
enable = true;
automount = false;
};
systemd.user.targets.tray.Unit = {
BindsTo = "waybar.service";
After = "waybar.service";
}; };
}; };
} }

View file

@ -5,7 +5,6 @@ configuration {
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "shared/colors.rasi" @import "shared/colors.rasi"
@import "shared/fonts.rasi"
/* /*
USE_ICON=YES USE_ICON=YES

View file

@ -14,7 +14,6 @@ configuration {
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "shared/colors.rasi" @import "shared/colors.rasi"
@import "shared/fonts.rasi"
/*****----- Main Window -----*****/ /*****----- Main Window -----*****/
window { window {

View file

@ -5,7 +5,6 @@ configuration {
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "shared/colors.rasi" @import "shared/colors.rasi"
@import "shared/fonts.rasi"
/*****----- Main Window -----*****/ /*****----- Main Window -----*****/

View file

@ -14,7 +14,6 @@ configuration {
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "shared/colors.rasi" @import "shared/colors.rasi"
@import "shared/fonts.rasi"
/*****----- Main Window -----*****/ /*****----- Main Window -----*****/
window { window {

View file

@ -9,7 +9,6 @@ configuration {
/*****----- Global Properties -----*****/ /*****----- Global Properties -----*****/
@import "shared/colors.rasi" @import "shared/colors.rasi"
@import "shared/fonts.rasi"
/* /*
USE_ICON=YES USE_ICON=YES

View file

@ -1,3 +0,0 @@
{
font: "Iosevka Nerd Font 10";
}

View file

@ -4,7 +4,7 @@
]; ];
home-manager.users.emily.programs.nixvim = { home-manager.users.emily.programs.nixvim = {
enable = true; enable = true;
extraPlugins = [ pkgs.vimPlugins.molokai ]; extraPlugins = [ pkgs.vimPlugins.molokai vimPlugins.vim-airline-themes ];
colorscheme = "molokai"; colorscheme = "molokai";
vimAlias = true; vimAlias = true;
highlightOverride.Normal = { highlightOverride.Normal = {
@ -164,7 +164,15 @@
servers = { servers = {
bashls.enable = true; bashls.enable = true;
lua-ls.enable = true; lua-ls.enable = true;
nixd.enable = true; nixd = {
enable = true;
settings = {
eval.depth = 5;
eval.workers = 6;
formatting.command = "nixpkgs-fmt";
options.enable = true;
};
};
ruff-lsp.enable = true; ruff-lsp.enable = true;
}; };
}; };
@ -190,13 +198,14 @@
nixGrammars = true; nixGrammars = true;
indent = true; indent = true;
}; };
plugins.airline.enable = true;
plugins.cmp-buffer.enable = true; plugins.cmp-buffer.enable = true;
plugins.cmp-emoji.enable = true; plugins.cmp-emoji.enable = true;
plugins.cmp-nvim-lsp.enable = true; plugins.cmp-nvim-lsp.enable = true;
plugins.cmp-path.enable = true; plugins.cmp-path.enable = true;
plugins.cmp_luasnip.enable = true; plugins.cmp_luasnip.enable = true;
plugins.luasnip.enable = true; plugins.luasnip.enable = true;
plugins.lightline.enable = true; plugins.nvim-autopairs.enable = true;
plugins.rainbow-delimiters.enable = true; plugins.rainbow-delimiters.enable = true;
plugins.rustaceanvim.enable = true; plugins.rustaceanvim.enable = true;
plugins.treesitter-context.enable = true; plugins.treesitter-context.enable = true;