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`
* Boot machine from ISO
* 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`
* Copy nixos configuration files to `/mnt`: `cp nixos-config/* /mnt/etc/nixos`
* Generate hardware config: `nixos-generate-config`
* Install system: `nixos-install` (set root password)
* Reboot
* Login as root
* Set password for `will`: `passwd will`
* Log out and login as `will` setting `mate+xmonad` as desktop session
* Set password for `elias`: `passwd will`
* Log out and login as `elias` setting `hyprland` as desktop session
* Generate an SSH key for the new machine: `ssh-keygen`
* [Add SSH key to github profile](https://github.com/settings/ssh/new)
* Clone dotfiles: `git clone --recursive git@github.com:willprice/dotfiles.git ~/.dotfiles`
* Install dotfiles: `cd ~/.dotfiles; ./install-all.sh`
# 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`
## Virtualbox setup

View File

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

View File

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