diff --git a/config/home.nix b/config/home.nix index 34ed2e4..e2fb510 100644 --- a/config/home.nix +++ b/config/home.nix @@ -37,24 +37,17 @@ in { file = { "/home/${username}/.scripts/audio/get-sink-name.sh".source = ./home/scripts/audio/get-sink-name.sh; "/home/${username}/.cache/scripts/get-sink-name.txt".source = ./home/cache/audio/get-sink-name.txt; - "/home/${username}/.cache/scripts/power.sh".source = ./home/scripts/system/power.sh; }; packages = with pkgs; [ alacritty arandr - asunder - audacity autorandr - brickstore - brightnessctl - corefonts csharp-ls cups curl dbeaver-bin discord - distrobox dolphin-emu dotnet-sdk_8 dotnetPackages.Nuget @@ -69,7 +62,6 @@ in { gimp git gnome.gnome-keyring - gnupg grip grub2 hack-font @@ -78,11 +70,8 @@ in { i3 i3-swallow i3lock-fancy - kdePackages.kleopatra keepassxc keepmenu - lame - libreoffice-fresh lightdm lua meslo-lgs-nf @@ -90,7 +79,6 @@ in { neovim networkmanager nextcloud-client - nfs-utils nitrogen nodejs nodePackages.npm @@ -100,13 +88,11 @@ in { os-prober pavucontrol picom - pinentry-curses playerctl plexamp pm2 polybar polybar-pulseaudio-control - prismlauncher pulseaudio ranger remmina @@ -119,9 +105,7 @@ in { tldr unzip vim - vimPlugins.vim-plug virtio-win - vistafonts vscode wget xclip diff --git a/config/home/scripts/system/power.sh b/config/home/scripts/system/power.sh deleted file mode 100644 index 65121b5..0000000 --- a/config/home/scripts/system/power.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -option=$(printf "sleep\nlogout\nshutdown\nrestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18') - -if [ "$option" = "sleep" ]; -then - i3lock-fancy -g -t "System Locked" -f Hack-Regular - systemctl suspend -elif [ "$option" = "logout" ]; -then - i3-msg exit -elif [ "$option" = "shutdown" ]; -then - poweroff -elif [ "$option" = "restart" ]; -then - reboot -fi diff --git a/config/packages/i3/config b/config/packages/i3/config index a0aa2d1..8ab1209 100644 --- a/config/packages/i3/config +++ b/config/packages/i3/config @@ -45,8 +45,8 @@ exec --no-startup-id "sh /home/vylpes/.screenlayout/default.sh" # Use pactl to adjust volume in PulseAudio. # Add "&& $refresh_i3status" if needed set $refresh_i3status killall -SIGUSR1 polybar -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle @@ -56,10 +56,6 @@ bindsym XF86AudioPause exec playerctl play-pause bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous -# Use brightnessctl to adjust brightness -bindsym XF86MonBrightnessUp exec brightnessctl set 10%+ -bindsym XF86MonBrightnessDown exec brightnessctl set 10%- - # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -194,7 +190,7 @@ bindsym $mod+Mod1+r reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "bash /home/vylpes/.cache/scripts/power.sh" +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { @@ -223,9 +219,6 @@ mode "resize" { bindsym $mod+r mode "resize" -# Windows to force floating -for_window [class="Plexamp"] floating enable - # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) diff --git a/config/packages/neovim/default.nix b/config/packages/neovim/default.nix index 4480ef2..dc0b484 100644 --- a/config/packages/neovim/default.nix +++ b/config/packages/neovim/default.nix @@ -1,4 +1,4 @@ { - home.file."/home/vylpes/.config/nvim/init.vim".source = ./init.vim; + home.file."/home/vylpes/.config/nvim/init.lua".source = ./init.lua; home.file."/home/vylpes/.config/nvim/coc-settings.json".source = ./coc-settings.json; } diff --git a/config/packages/neovim/init.lua b/config/packages/neovim/init.lua new file mode 100644 index 0000000..cfbb39d --- /dev/null +++ b/config/packages/neovim/init.lua @@ -0,0 +1,245 @@ +-- Leader key +vim.g.mapleader = " " + +-- Disable Copilot by default +vim.g.copilot_enabled = false + +-- Basic settings +vim.opt.compatible = false +vim.opt.showmatch = true +vim.opt.ignorecase = true +vim.opt.mouse = "v" +vim.opt.hlsearch = true +vim.opt.incsearch = true + +-- Tab and indentation settings +vim.opt.tabstop = 4 +vim.opt.softtabstop = 4 +vim.opt.expandtab = true +vim.opt.shiftwidth = 4 +vim.opt.autoindent = true + +-- Line numbering +vim.opt.number = true +vim.opt.relativenumber = true + +-- Command-line completion mode +vim.opt.wildmode = { "longest", "list" } + +-- Column marker at 80 characters +vim.opt.colorcolumn = "80" + +-- Enable filetype plugins and indentation +vim.cmd("filetype plugin indent on") + +-- Enable syntax highlighting +vim.cmd("syntax on") + +-- Enable mouse support +vim.opt.mouse = "a" + +-- Use system clipboard +vim.opt.clipboard = "unnamedplus" + +-- Enable cursorline +vim.opt.cursorline = true + +-- Optimize for fast terminal +vim.opt.ttyfast = true + +-- Do not add a newline at the end of the file +vim.opt.fixeol = false + +-- Enable syntax highlighting +vim.cmd("syntax enable") + +-- Set colorscheme to dracula +vim.cmd("colorscheme dracula") + +-- Open new vertical splits to the right +vim.opt.splitright = true + +-- Open new horizontal splits below +vim.opt.splitbelow = true + +-- Insert mode mappings +vim.api.nvim_set_keymap('i', '', ':m .+1==gi', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('i', '', ':m .-2==gi', { noremap = true, silent = true }) + +-- Visual mode mappings +vim.api.nvim_set_keymap('v', '', ":m '>+1gv=gv", { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', '', ":m '<-2gv=gv", { noremap = true, silent = true }) + +-- Normal mode mappings for window movement +vim.api.nvim_set_keymap('n', '', 'H', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'J', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'K', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'L', { noremap = true, silent = true }) + +-- Normal mode mappings for window navigation +vim.api.nvim_set_keymap('n', '', 'h', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'j', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'k', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'l', { noremap = true, silent = true }) + +-- Normal mode mapping for opening file in vertical split +vim.api.nvim_set_keymap('n', 'gf', ':vert winc f', { noremap = true, silent = true }) + +-- Insert mode mappings for CoC (Conquer of Completion) +vim.api.nvim_set_keymap('i', '', [[coc#pum#visible() ? coc#_select_confirm() : "\u\"]], { noremap = true, silent = true, expr = true }) +vim.api.nvim_set_keymap('i', '', [[coc#pum#visible() ? coc#pum#next(1) : "\"]], { noremap = true, silent = true, expr = true }) +vim.api.nvim_set_keymap('i', '', [[coc#pum#visible() ? coc#pum#prev(1) : "\"]], { noremap = true, silent = true, expr = true }) + +-- Normal mode mappings for NERDTree +vim.api.nvim_set_keymap('n', 'n', ':NERDTreeFocus', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', ':NERDTree', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', ':NERDTreeToggle', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', ':NERDTreeFind', { noremap = true, silent = true }) + +-- Normal mode mapping for opening file explorer +vim.api.nvim_set_keymap('n', 'ee', ':Ex', { noremap = true, silent = true }) + +-- Harpoon mappings +vim.api.nvim_set_keymap('n', 'ha', 'lua require("harpoon.mark").add_file()', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'hh', 'lua require("harpoon.ui").toggle_quick_menu()', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '1', 'lua require("harpoon.ui").nav_file(1)', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '2', 'lua require("harpoon.ui").nav_file(2)', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '3', 'lua require("harpoon.ui").nav_file(3)', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '4', 'lua require("harpoon.ui").nav_file(4)', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'lua require("harpoon.ui").nav_prev()', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'lua require("harpoon.ui").nav_next()', { noremap = true, silent = true }) + +-- FZF mapping +vim.api.nvim_set_keymap('n', 'ff', ':FZF', { noremap = true, silent = true }) + +-- Miscellaneous mappings +vim.api.nvim_set_keymap('n', 'mm', ':nohl', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'ml', ':%s/\\r//g', { noremap = true, silent = true }) + +-- Yarn mappings +vim.api.nvim_set_keymap('n', 'yb', ':!yarn build', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'yi', ':!yarn install', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'ys', ':!yarn start', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'yt', ':!yarn test', { noremap = true, silent = true }) + +-- Dotnet mapping +vim.api.nvim_set_keymap('n', 'dr', ':!dotnet run', { noremap = true, silent = true }) + +-- Prettier mapping +vim.api.nvim_set_keymap('n', 'p', '(prettier-format)', { noremap = true, silent = true }) + +-- Copilot Chat mappings +vim.api.nvim_set_keymap('n', '', ':CopilotChatToggle', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'ps', ':CopilotChatStop', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'pr', ':CopilotChatReset', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pe', ':CopilotChatExplain', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pr', ':CopilotChatReview', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pf', ':CopilotChatFix', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'po', ':CopilotChatOptimize', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pd', ':CopilotChatDocs', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pt', ':CopilotChatTests', { noremap = true, silent = true }) + +-- Harpoon mappings +vim.api.nvim_set_keymap('n', 'ha', 'lua require("harpoon.mark").add_file()', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'hh', 'lua require("harpoon.ui").toggle_quick_menu()', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '1', 'lua require("harpoon.ui").nav_file(1)', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '2', 'lua require("harpoon.ui").nav_file(2)', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '3', 'lua require("harpoon.ui").nav_file(3)', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '4', 'lua require("harpoon.ui").nav_file(4)', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'lua require("harpoon.ui").nav_prev()', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', 'lua require("harpoon.ui").nav_next()', { noremap = true, silent = true }) + +-- FZF mapping +vim.api.nvim_set_keymap('n', 'ff', ':FZF', { noremap = true, silent = true }) + +-- Miscellaneous mappings +vim.api.nvim_set_keymap('n', 'mm', ':nohl', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'ml', ':%s/\\r//g', { noremap = true, silent = true }) + +-- Yarn mappings +vim.api.nvim_set_keymap('n', 'yb', ':!yarn build', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'yi', ':!yarn install', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'ys', ':!yarn start', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'yt', ':!yarn test', { noremap = true, silent = true }) + +-- Dotnet mapping +vim.api.nvim_set_keymap('n', 'dr', ':!dotnet run', { noremap = true, silent = true }) + +-- Prettier mapping +vim.api.nvim_set_keymap('n', 'p', '(prettier-format)', { noremap = true, silent = true }) + +-- Copilot mappings +vim.api.nvim_set_keymap('n', '', ':CopilotChatToggle', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'ps', ':CopilotChatStop', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', 'pr', ':CopilotChatReset', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pe', ':CopilotChatExplain', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pr', ':CopilotChatReview', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pf', ':CopilotChatFix', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'po', ':CopilotChatOptimize', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pd', ':CopilotChatDocs', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('v', 'pt', ':CopilotChatTests', { noremap = true, silent = true }) + +local ensure_packer = function() + local fn = vim.fn + local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' + if fn.empty(fn.glob(install_path)) > 0 then + fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) + vim.cmd [[packadd packer.nvim]] + return true + end + return false +end + +local packer_bootstrap = ensure_packer() + +vim.cmd [[packadd packer.nvim]] + +require('packer').startup(function(use) + -- Packer can manage itself + use 'wbthomason/packer.nvim' + + -- Plugins + use 'dracula/vim' + use 'ryanoasis/vim-devicons' + -- use 'SirVer/ultisnips' + use 'honza/vim-snippets' + use 'scrooloose/nerdtree' + use 'preservim/nerdcommenter' + use 'mhinz/vim-startify' + use {'neoclide/coc.nvim', branch = 'release'} + use 'nvim-lua/plenary.nvim' + use 'ThePrimeagen/harpoon' + use {'junegunn/fzf', run = function() vim.fn['fzf#install']() end} + use 'junegunn/fzf.vim' + use 'neovim/nvim-lspconfig' + use 'jose-elias-alvarez/null-ls.nvim' + use 'MunifTanjim/prettier.nvim' + use 'github/copilot.vim' + use {'CopilotC-Nvim/CopilotChat.nvim', branch = 'canary'} +end) + +-- Copilot Chat +local prompts = require('CopilotChat.prompts') +local select = require('CopilotChat.select') + +require("CopilotChat").setup { + debug = false, + + question_header = '## User ', + answer_header = '## Copilot ', + error_header = '## Error ', + separator = '---', + + selection = function(source) + return select.visual(source) or select.line(source) + end, + + window = { + layout = 'float', + }, +} + +if vim.fn.has("termguicolors") == 1 then + vim.opt.termguicolors = true +end + diff --git a/config/packages/neovim/init.vim b/config/packages/neovim/init.vim deleted file mode 100644 index 32d91e7..0000000 --- a/config/packages/neovim/init.vim +++ /dev/null @@ -1,143 +0,0 @@ -let mapleader = " " -let g:copilot_enabled = v:false - -set nocompatible -set showmatch -set ignorecase -set mouse=v -set hlsearch -set incsearch -set tabstop=4 -set softtabstop=4 -set expandtab -set shiftwidth=4 -set autoindent -set number -set relativenumber -set wildmode=longest,list -set cc=80 -filetype plugin indent on -syntax on -set mouse=a -set clipboard=unnamedplus -filetype plugin on -set cursorline -set ttyfast -set nofixeol - -let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' -if empty(glob(data_dir . '/autoload/plug.vim')) - silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' - autocmd VimEnter * PlugInstall --sync | source $MYVIMRC -endif - -call plug#begin("~/.vim/plugged") - Plug 'dracula/vim' - Plug 'ryanoasis/vim-devicons' - " Plug 'SirVer/ultisnips' - Plug 'honza/vim-snippets' - Plug 'scrooloose/nerdtree' - Plug 'preservim/nerdcommenter' - Plug 'mhinz/vim-startify' - Plug 'neoclide/coc.nvim', {'branch': 'release'} - Plug 'nvim-lua/plenary.nvim' - Plug 'ThePrimeagen/harpoon' - Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } - Plug 'junegunn/fzf.vim' - Plug 'neovim/nvim-lspconfig' - Plug 'jose-elias-alvarez/null-ls.nvim' - Plug 'MunifTanjim/prettier.nvim' - Plug 'github/copilot.vim' - Plug 'CopilotC-Nvim/CopilotChat.nvim', { 'branch': 'canary' } -call plug#end() - -lua << EOF -local prompts = require('CopilotChat.prompts') -local select = require('CopilotChat.select') - -require("CopilotChat").setup { - debug = false, - - question_header = '## User ', - answer_header = '## Copilot ', - error_header = '## Error ', - separator = '---', - - selection = function(source) - return select.visual(source) or select.line(source) - end, - - window = { - layout = 'float', - }, -} -EOF - -if (has("termguicolors")) - set termguicolors -endif -syntax enable -colorscheme dracula - -set splitright -set splitbelow - -inoremap :m .+1==gi -inoremap :m .-2==gi -vnoremap :m '>+1gv=gv -vnoremap :m '<-2gv=gv - -nnoremap H -nnoremap J -nnoremap K -nnoremap L - -nnoremap h -nnoremap j -nnoremap k -nnoremap l - -nnoremap gf :vert winc f - -inoremap coc#pum#visible() ? coc#_select_confirm() : "\u\" -inoremap coc#pum#visible() ? coc#pum#next(1) : "\" -inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" - -nnoremap n :NERDTreeFocus -nnoremap :NERDTree -nnoremap :NERDTreeToggle -nnoremap :NERDTreeFind -nnoremap ee :Ex - -nnoremap ha lua require("harpoon.mark").add_file() -nnoremap hh lua require("harpoon.ui").toggle_quick_menu() -nnoremap 1 lua require("harpoon.ui").nav_file(1) -nnoremap 2 lua require("harpoon.ui").nav_file(2) -nnoremap 3 lua require("harpoon.ui").nav_file(3) -nnoremap 4 lua require("harpoon.ui").nav_file(4) -nnoremap lua require("harpoon.ui").nav_prev() -nnoremap lua require("harpoon.ui").nav_next() - -nnoremap ff :FZF - -nnoremap mm :nohl -nnoremap ml :%s/\r//g - -nnoremap yb :!yarn build -nnoremap yi :!yarn install -nnoremap ys :!yarn start -nnoremap yt :!yarn test - -nnoremap dr :!dotnet run - -nnoremap p (prettier-format) - -nnoremap :CopilotChatToggle -nnoremap ps :CopilotChatStop -nnoremap pr :CopilotChatReset -vnoremap pe :CopilotChatExplain -vnoremap pr :CopilotChatReview -vnoremap pf :CopilotChatFix -vnoremap po :CopilotChatOptimize -vnoremap pd :CopilotChatDocs -vnoremap pt :CopilotChatTests diff --git a/docs/Neovim.md b/docs/Neovim.md new file mode 100644 index 0000000..f15497f --- /dev/null +++ b/docs/Neovim.md @@ -0,0 +1,13 @@ +# Neovim + +Neovim is mostly configured in the flake, we just need to install packer +separately, although this is only required to do once. + +## Installation + +Run the following command in the terminal + +```bash +git clone --depth 1 https://github.com/wbthomason/packer.nvim\ + ~/.local/share/nvim/site/pack/packer/start/packer.nvim +``` diff --git a/flake.lock b/flake.lock index a836bfe..7490bf9 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1735563628, - "narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=", + "lastModified": 1729691686, + "narHash": "sha256-BAuPWW+9fa1moZTU+jFh+1cUtmsuF8asgzFwejM4wac=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798", + "rev": "32e940c7c420600ef0d1ef396dc63b04ee9cad37", "type": "github" }, "original": { diff --git a/system/shared.nix b/system/shared.nix index 52157d6..5105a21 100644 --- a/system/shared.nix +++ b/system/shared.nix @@ -115,7 +115,6 @@ gco = "git checkout"; s = "swallow"; - nrb = "sudo nixos-rebuild switch --flake /home/vylpes/flake#\${HOST}"; }; }; @@ -167,6 +166,7 @@ ovmf.packages = [ pkgs.OVMFFull.fd ]; }; }; + virtualbox.host.enable = true; }; xdg.portal = { diff --git a/system/vylpes-desktop/hardware-configuration.nix b/system/vylpes-desktop/hardware-configuration.nix index da4aed6..a3eb4bd 100644 --- a/system/vylpes-desktop/hardware-configuration.nix +++ b/system/vylpes-desktop/hardware-configuration.nix @@ -14,17 +14,19 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/b05ff56e-2fdb-4472-a380-b2a0ef9229cc"; + { device = "/dev/disk/by-uuid/3c957d4e-06fc-40bc-b5b9-2583d0f7ee94"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/725A-BE77"; + { device = "/dev/disk/by-uuid/2D69-3A13"; fsType = "vfat"; options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ ]; + swapDevices = + [ { device = "/dev/disk/by-uuid/3de826ff-b7e3-44bc-97d2-4bd2248f9555"; } + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/system/vylpes-framework/hardware-configuration.nix b/system/vylpes-framework/hardware-configuration.nix index 01e1627..96b3d17 100644 --- a/system/vylpes-framework/hardware-configuration.nix +++ b/system/vylpes-framework/hardware-configuration.nix @@ -14,17 +14,19 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/0a7cd202-311d-4ece-a487-ade7c847036b"; + { device = "/dev/disk/by-uuid/d3ac6957-c669-410a-836c-dbe67e684b55"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/4158-074D"; + { device = "/dev/disk/by-uuid/877D-2522"; fsType = "vfat"; options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ ]; + swapDevices = + [ { device = "/dev/disk/by-uuid/552e97ec-9516-4c0e-bab8-411a7bbdbb69"; } + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's