cleanup
This commit is contained in:
parent
6b9bfdc64e
commit
ea762a3958
|
@ -6,7 +6,8 @@
|
|||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
|
@ -43,21 +44,21 @@
|
|||
environment.etc.crypttab = {
|
||||
enable = true;
|
||||
text = ''
|
||||
# /etc/crypttab: mappings for encrypted partitions.
|
||||
#
|
||||
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
|
||||
# should use the /dev/mapper/<name> paths for encrypted devices.
|
||||
#
|
||||
# See crypttab(5) for the supported syntax.
|
||||
#
|
||||
# NOTE: Do not list your root (/) partition here, it must be set up
|
||||
# beforehand by the initramfs (/etc/mkinitcpio.conf). The same applies
|
||||
# to encrypted swap, which should be set up with mkinitcpio-openswap
|
||||
# for resume support.
|
||||
#
|
||||
# <name> <device> <password> <options>
|
||||
# luks-d515fd8a-a021-4a1e-bd21-5793c3c3a771 UUID=d515fd8a-a021-4a1e-bd21-5793c3c3a771 /crypto_keyfile.bin luks
|
||||
externaldrive UUID=b9e3979c-9362-4242-a835-6dd702dfb0ee /etc/externalHD_keyfile.bin luks
|
||||
# /etc/crypttab: mappings for encrypted partitions.
|
||||
#
|
||||
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
|
||||
# should use the /dev/mapper/<name> paths for encrypted devices.
|
||||
#
|
||||
# See crypttab(5) for the supported syntax.
|
||||
#
|
||||
# NOTE: Do not list your root (/) partition here, it must be set up
|
||||
# beforehand by the initramfs (/etc/mkinitcpio.conf). The same applies
|
||||
# to encrypted swap, which should be set up with mkinitcpio-openswap
|
||||
# for resume support.
|
||||
#
|
||||
# <name> <device> <password> <options>
|
||||
# luks-d515fd8a-a021-4a1e-bd21-5793c3c3a771 UUID=d515fd8a-a021-4a1e-bd21-5793c3c3a771 /crypto_keyfile.bin luks
|
||||
externaldrive UUID=b9e3979c-9362-4242-a835-6dd702dfb0ee /etc/externalHD_keyfile.bin luks
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -105,22 +106,7 @@ externaldrive UUID=b9e3979c-9362-4242-a835-6dd702dfb0ee /etc/externalHD_keyfile.
|
|||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.alex = {
|
||||
isNormalUser = true;
|
||||
home = "/home/alex";
|
||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
keepassxc
|
||||
nextcloud-client
|
||||
discord
|
||||
vscode
|
||||
wineWowPackages.unstableFull
|
||||
winetricks
|
||||
mpv
|
||||
git
|
||||
lutris
|
||||
steam
|
||||
spotify
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users.alex = import ./home.nix;
|
||||
|
@ -168,7 +154,6 @@ externaldrive UUID=b9e3979c-9362-4242-a835-6dd702dfb0ee /etc/externalHD_keyfile.
|
|||
font-manager
|
||||
lshw
|
||||
mesa_22_3
|
||||
nixfmt
|
||||
pavucontrol
|
||||
unzip
|
||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
|
@ -209,6 +194,5 @@ externaldrive UUID=b9e3979c-9362-4242-a835-6dd702dfb0ee /etc/externalHD_keyfile.
|
|||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
|
17
home.nix
17
home.nix
|
@ -7,8 +7,21 @@
|
|||
home.homeDirectory = "/home/alex";
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = [
|
||||
pkgs.nixpkgs-fmt
|
||||
home.packages = with pkgs; [
|
||||
discord
|
||||
firefox
|
||||
git
|
||||
keepassxc
|
||||
lutris
|
||||
mpv
|
||||
nextcloud-client
|
||||
nixpkgs-fmt
|
||||
spotify
|
||||
steam
|
||||
vscode
|
||||
winetricks
|
||||
wineWowPackages.unstableFull
|
||||
yt-dlp
|
||||
];
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$(git status --porcelain)" ]
|
||||
then
|
||||
git push --force-with-lease
|
||||
rev=$(git rev-parse HEAD)
|
||||
sudo nixos-rebuild switch \
|
||||
--show-trace \
|
||||
--flake "git+https://git.atauno.com/atau/nixos-config.git"
|
||||
--flake "git+https://git.atauno.com/atau/nixos-config.git?ref=master&rev=$rev"
|
||||
else
|
||||
echo "Git working directory is unclean, please commit changes"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue