Skip to content

Commit

Permalink
hm move stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Oct 22, 2024
1 parent 2325776 commit f1f7234
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,20 @@ $ nixos-rebuild switch --flake . --target-host 192.168.1.195 --fast --use-remote
VM install

```
$ parted /dev/sda -- mklabel gpt
$ parted /dev/sda -- mkpart root ext4 512MB -8GB
$ parted /dev/sda -- mkpart swap linux-swap -8GB 100%
$ parted /dev/sda -- mkpart ESP fat32 1MB 512MB
$ parted /dev/sda -- set 3 esp on
$ mkfs.ext4 -L nixos /dev/sda1
$ mkswap -L swap /dev/sda2
$ mkfs.fat -F 32 -n boot /dev/sda3
$ mount /dev/disk/by-label/nixos /mnt
$ mkdir -p /mnt/boot
$ mount -o umask=077 /dev/disk/by-label/boot /mnt/boot
$ swapon /dev/sda2
$ nixos-install --flake github:esselius/cfg#vm
```
8 changes: 7 additions & 1 deletion home-configurations/peteresselius.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ ezModules, config, lib, ... }:
{ pkgs, ezModules, config, lib, ... }:

let
inherit (lib) mkMerge mkIf;
Expand Down Expand Up @@ -36,4 +36,10 @@ in
'';
})
];

home = {
stateVersion = "24.05";
homeDirectory = if pkgs.stdenv.isDarwin then "/Users/peteresselius" else "/home/peteresselius";
username = "peteresselius";
};
}
6 changes: 0 additions & 6 deletions home-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
ezModules.nix
];

home = {
stateVersion = "24.05";
homeDirectory = if pkgs.stdenv.isDarwin then "/Users/peteresselius" else "/home/peteresselius";
username = "peteresselius";
};

inherit (osConfig) context;
inherit (osConfig) formfactor;
}
3 changes: 0 additions & 3 deletions nixos-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@
ezModules.nix
../overlays.nix
];

security.sudo.wheelNeedsPassword = false;
users.mutableUsers = false;
}
3 changes: 3 additions & 0 deletions nixos-modules/user-peteresselius.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
};

programs.fish.enable = true;

security.sudo.wheelNeedsPassword = false;
users.mutableUsers = false;
}

0 comments on commit f1f7234

Please sign in to comment.