chore: updated configuration

This commit is contained in:
Elias Renman
2023-11-26 18:30:24 +00:00
parent 573daf64bf
commit b485401724
3 changed files with 31 additions and 58 deletions

View File

@@ -2,19 +2,19 @@
* Write the ISO to a USB drive using `dd` * Write the ISO to a USB drive using `dd`
* Boot machine from ISO * Boot machine from ISO
* Install git: `nix-env -i git` * Install git: `nix-env -i git`
* Clone configuration: `git clone https://github.com/willprice/nixos-config.git` * Clone configuration: `git clone https://github.com/eliasrenman/nixos-config.git`
* Follow the [installation guide](https://nixos.org/nixos/manual/index.html#sec-installation) up to `nixos-generate-config` * Follow the [installation guide](https://nixos.org/nixos/manual/index.html#sec-installation) up to `nixos-generate-config`
* Copy nixos configuration files to `/mnt`: `cp nixos-config/* /mnt/etc/nixos` * Copy nixos configuration files to `/mnt`: `cp nixos-config/* /mnt/etc/nixos`
* Generate hardware config: `nixos-generate-config` * Generate hardware config: `nixos-generate-config`
* Install system: `nixos-install` (set root password) * Install system: `nixos-install` (set root password)
* Reboot * Reboot
* Login as root * Login as root
* Set password for `will`: `passwd will` * Set password for `elias`: `passwd will`
* Log out and login as `will` setting `mate+xmonad` as desktop session * Log out and login as `elias` setting `hyprland` as desktop session
* Generate an SSH key for the new machine: `ssh-keygen` * Generate an SSH key for the new machine: `ssh-keygen`
* [Add SSH key to github profile](https://github.com/settings/ssh/new) * [Add SSH key to github profile](https://github.com/settings/ssh/new)
* Clone dotfiles: `git clone --recursive git@github.com:willprice/dotfiles.git ~/.dotfiles` # Remove this until i've create dotfiles * Clone dotfiles: `git clone --recursive git@github.com:willprice/dotfiles.git ~/.dotfiles`
* Install dotfiles: `cd ~/.dotfiles; ./install-all.sh` # * Install dotfiles: `cd ~/.dotfiles; ./install-all.sh`
## Virtualbox setup ## Virtualbox setup

View File

@@ -26,17 +26,17 @@
i18n = { i18n = {
consoleFont = "Lat2-Terminus16"; consoleFont = "Lat2-Terminus16";
consoleKeyMap = "uk"; consoleKeyMap = "se";
defaultLocale = "en_GB.UTF-8"; defaultLocale = "sv_SE.UTF-8";
}; };
time.timeZone = "Europe/London"; time.timeZone = "Europe/Stockholm";
# 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;
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; }; # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
programs.vim.defaultEditor = true; programs.vscode.defaultEditor = true;
#programs.nylas-mail.enable = true; #programs.nylas-mail.enable = true;
programs.npm.enable = true; programs.npm.enable = true;
#programs.nm-applet.enable = true; #programs.nm-applet.enable = true;
@@ -44,7 +44,6 @@
#programs.iotop.enable = true; #programs.iotop.enable = true;
programs.iftop.enable = true; programs.iftop.enable = true;
programs.java.enable = true; programs.java.enable = true;
programs.gphoto2.enable = true;
services.mpd = { services.mpd = {
enable = true; enable = true;
startWhenNeeded = true; startWhenNeeded = true;
@@ -53,8 +52,8 @@
services.acpid.enable = true; services.acpid.enable = true;
services.redshift = { services.redshift = {
enable = true; enable = true;
latitude = "51.4545"; latitude = "63.825848";
longitude = "-2.5879"; longitude = "-20.263035";
}; };
services.openssh.enable = true; services.openssh.enable = true;
@@ -74,26 +73,16 @@
# services.xserver.xkbOptions = "eurosign:e"; # services.xserver.xkbOptions = "eurosign:e";
services.xserver.libinput.enable = true; services.xserver.libinput.enable = true;
services.xserver.layout = "se";
services.xserver.xkbVariant = "mac";
# Enable the KDE Desktop Environment. # Enable the Hyprland Desktop Environment.
#services.xserver.displayManager.sddm.enable = true; programs.hyprland.enable = true;
#services.xserver.desktopManager.plasma5.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.mate.enable = true;
services.xserver.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
extraPackages = haskellPackages: [
haskellPackages.xmonad-contrib
haskellPackages.xmonad-extras
haskellPackages.xmonad
];
};
# Don't forget to set a password with passwd. # Don't forget to set a password with passwd.
users.users.will = { users.users.elias = {
isNormalUser = true; isNormalUser = true;
home = "/home/will"; home = "/home/elias";
uid = 1000; uid = 1000;
extraGroups = [ "wheel" "networkmanager" ]; extraGroups = [ "wheel" "networkmanager" ];
}; };

View File

@@ -7,18 +7,16 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget git vim wget
git
stow stow
sudo sudo
fish
ncdu ncdu
gzip gzip
unar unar
unzip unzip
p7zip dd
cpio
# dd
# Build toolchains # Build toolchains
@@ -33,18 +31,13 @@
clang-manpages clang-manpages
clang-tools clang-tools
python27 rustc
python37 python37
pipenv nodejs_20
ruby
bundler
ghc
stack
# GUI tools # GUI tools
gnome3.file-roller
# Media # Media
@@ -56,23 +49,16 @@
gst-plugins-good gst-plugins-good
# IDEs # IDEs
jetbrains.clion neovim
jetbrains.webstorm vscode
jetbrains.idea-ultimate
jetbrains.pycharm-professional
# Desktop # Desktop
xmonad-with-packages xmonad-with-packages
dmenu dmenu
rofi rofi
(polybar.override {
alsaSupport = true;
githubSupport = true;
mpdSupport = true;
pulseSupport = true;
})
material-icons material-icons
xorg.xmodmap xorg.xmodmap
xorg.xset xorg.xset
xorg.xsetroot xorg.xsetroot
@@ -80,16 +66,14 @@
terminus_font terminus_font
terminus_font_ttf terminus_font_ttf
dejavu_fonts dejavu_fonts
hack-font jetbrains-mono
hasklig
inriafonts inriafonts
iosevka iosevka
kdeApplications.konsole
firefox firefox
chromium chromium
alacritty
sway hyprland
ncmpcpp ncmpcpp
powerline-fonts powerline-fonts
]; ];