add cosmic vm
This commit is contained in:
parent
7e7234e00a
commit
bbfef8c4ee
2 changed files with 69 additions and 0 deletions
32
hosts/virtual-machines/cosmic/default.nix
Normal file
32
hosts/virtual-machines/cosmic/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
packages = with pkgs; [ fastfetch ];
|
||||
in
|
||||
{
|
||||
services = {
|
||||
desktopManager.cosmic.enable = true;
|
||||
displayManager.cosmic-greeter.enable = true;
|
||||
};
|
||||
|
||||
virtualisation.vmVariant.virtualisation = {
|
||||
memorySize = 8192;
|
||||
cores = 6;
|
||||
};
|
||||
|
||||
environment.systemPackages = lib.lists.unique (packages);
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
substituters = [
|
||||
"https://cosmic.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
37
hosts/virtual-machines/cosmic/flake.nix
Normal file
37
hosts/virtual-machines/cosmic/flake.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
description = "System Configuration @ cswimr 2024";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
cosmic.url = "github:lilyinstarlight/nixos-cosmic";
|
||||
};
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
cosmic,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
user = "nixos";
|
||||
system = "x86_64-linux";
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
system = system;
|
||||
hostname = "nixos";
|
||||
user = user;
|
||||
};
|
||||
modules = [
|
||||
# imports
|
||||
../common.nix
|
||||
./default.nix
|
||||
cosmic.nixosModules.default
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue